VB.NET 2005 and ToolStripMenuItem

  • Thread starter Thread starter Maileen
  • Start date Start date
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
 
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.
 
Back
Top