Is it possible to activate a menu with the right mouse click ?
Thanks
Printable View
Is it possible to activate a menu with the right mouse click ?
Thanks
don't understand what u mean??
For exemple with winamp:
when you click (right click) on the main window, a menu appear.
Can I do this with vb ?
Do you understand, now ?
You need to create a reguler menu usung the menu editor.
Like:
File (mnuFile)
....About (mnuAbout)
....Minimize (mnuMini)
....Exit (mnuExit)
make the mnu file not visible.
the code is:
Private Sub Command1_Click()
PopupMenu Form1.mnuFile
End Sub
I understand but I will have to get back to u cos I can't remmember straight off. Mind I saw something like this in one of VB-Worlds topics
Just one thing: how can i do a demarcation between two menu ?
Thanks
Right click:
And a demarcation in the menu, add a hyphen as the caption: -Code:Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then PopupMenu MyMenu
End Sub
(For the post below: My mistake! ;))
[Edited by Matthew Gates on 09-09-2000 at 01:27 PM]
Shouldn't it be PopupMenu MyMenu