Is there a right click menu component in vb that can be dragged on to the form, if not how could this effect be created thanks a lot
thanks to the guys yesterday......
Printable View
Is there a right click menu component in vb that can be dragged on to the form, if not how could this effect be created thanks a lot
thanks to the guys yesterday......
do you mean how to create a popup menu?
If so, the code is simple:
Code:PopupMenu menuName
no i mean when you right click on the desktop a menu opens up besides the cursor, how can this be done in vb
ask me if you need any more clarification...
A popup menu IS a "right-click" menu. To create one, use the menu editor to create your menu. Set the visiblity to false. Code the menu like you would a regular menu. Then put this code in the form's code window to display the menu on a right click:
Code:Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
Me.PopupMenu RightClickMenuName
End If
End Sub
q