CodeItBetter Programming Another VB Programming Blog

How to Create/Assign PopupMenu to a control.

Posted on September 14, 2011
1
2
3
4
5
6
7
8
9
10
11
'Forms - How to Create/Assign PopupMenu to a control.
'Suppose u want a menu to be appeared when a textbox is clicked with the
'Right-Mouse Button. Create a menu from menu editor (popup1 name is used in this
'example), set its visible property to false. And place the following code in
'the textbox's mousedown event.

Private Sub Text1_click()
    If Button = 2 Then
        Form1.PopupMenu popup1
    End If
End Sub
Filed under: Forms Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.