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

Re: Display menu items programatically in C# by Martin

Martin
Sat Jan 24 05:12:44 CST 2004

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

"Michael" <anonymous@discussions.microsoft.com> wrote in message
news:1A08E82B-7A56-4E5E-A2E0-55456E44A120@microsoft.com...
> 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
>



Re: Display menu items programatically in C# by hirf-spam-me-here

hirf-spam-me-here
Sat Jan 24 05:53:21 CST 2004

* "Martin Robins" <martin - robins @ ntlworld dot com> scripsit:
> 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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>