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).
Printable View
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).
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
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???????????????
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