Click to See Complete Forum and Search --> : Popupmenus
Pinky
Dec 7th, 1999, 01:34 AM
I'm using a Popupmenu to bring up the menu on the right click of a mouse. The menu is created in one form and poped up in another form. Now how do I recognise the click event of the popupmenu(its menu is in another form).
MartinLiss
Dec 7th, 1999, 01:48 AM
Why not put the same menu in both forms? It's not visible anyhow, and the menu_Click event in each menu can always be made to execute the same subroutine in a code module.
------------------
Marty
Pinky
Dec 7th, 1999, 01:52 AM
I am using the same form(a user control is placed on it) in many places. I can't duplicate the menu in all the places. Is there any other solution???????????????
HeSaidJoe
Dec 7th, 1999, 02:26 AM
Let's say Form2 has a menu called mnuHelpMeOut and it has a submenu of mnuMessage and in mnuMessage click event you have a MsgBox "Here is how it works"
On Form1 you have a command button and in it's click event you put this.
Form2.Popup mnuMessage
Hope it helps,
Wayne
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.