Display menu items programatically in C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I was wondering if it is possible to display menu items inside code, i.e. to simulate the click event to menu items. E.g. menu File has a number of menu items( new, open, ... ). I want to display those submenu items programmatically.
Thanks for your kind help in advance.

(Sorry I did not indicate which language is it.)

Michael
 
The menu control has a Click() method that simulates it being clicked by the
user.

Michael said:
Hi,
I was wondering if it is possible to display menu items inside code,
i.e. to simulate the click event to menu items. E.g. menu File has a number
of menu items( new, open, ... ). I want to display those submenu items
programmatically.
 
* "Martin Robins said:
The menu control has a Click() method that simulates it being clicked by the
user.

You can call the 'PerformClick' method of the menu item.
 
Back
Top