How to trigger menu click event from a user control?
-
I have a user control in the form. I have written some code in menu click event in the form class. When I click a button in the user control, the same thing should happen as I clicked a menu item. How can I make this event to happen from the user control class, like "SendMessage" is used in VC++...
-
I have a user control in the form. I have written some code in menu click event in the form class. When I click a button in the user control, the same thing should happen as I clicked a menu item. How can I make this event to happen from the user control class, like "SendMessage" is used in VC++...
Use a delegate to send a message back to the parent form, then hook up the menu event to call the same method.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
I have a user control in the form. I have written some code in menu click event in the form class. When I click a button in the user control, the same thing should happen as I clicked a menu item. How can I make this event to happen from the user control class, like "SendMessage" is used in VC++...