Caption = "This sample application shows you how to detect when the user clicks the right mouse button on an text box. This is useful if you want to display help on particular controls that do not give you a Click event. Click your right mouse button on the text box above and see."
Height = 1125
Left = 180
TabIndex = 3
Top = 1710
Width = 4755
End
Begin Label Label1
AutoSize = -1 'True
Caption = "Text Box ->"
Height = 195
Left = 660
TabIndex = 2
Top = 1110
Width = 990
End
Option Explicit
Declare Function GetDesktopHwnd Lib "User" () As Integer
Sub Command1_Click ()
End
End Sub
Sub Form_Load ()
Dim rc As Long
VBMsg1.SubClasshWnd = Text1.hWnd
End Sub
Sub VBMsg1_WindowMessage (hWindow As Integer, Msg As Integer, wParam As Integer, lParam As Long, RetVal As Long, CallDefProc As Integer)