VB.NET 2005 and ToolStripMenuItem

M

Maileen

Hi,

I've create an application which includes :
- a toolstrip
- a toolstripmenu
- several toolstripmenuitem(s)

so, now i have a menu like that :

-File
|
|-New
|-Open
|-Save
....

With normal menu control, each submenuitem has an index value that allows me to know exactly which one has be clicked.
But i do not see any index property in the ToolStripMenuItem control...

So, how can i detect which subitem has been clicked ?

thanks a lot,
Maileen
 
W

Wicksy

Each menu item has a name property, rather than an index number.
They can be referenced that way.

Each menu item is an object in its own right, with its own events, methods,
properties, etc.
 

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