Display menu items programatically in C#

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
 
M

Martin Robins

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.
 
H

Herfried K. Wagner [MVP]

* "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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top