A
Academia
I use to do this:
Dim index As Integer = CType(sender, MenuItem).Index
but ToolStripMenuItems do not have an Index property so I can set the Tag or
MergeIndex property of those items and use that.
But that is error prone since changes in the menu require that those values
be kept synchronized.
Even though there is no Index property I have the feeling that the
collection might have the equivalent.
Is there a way of getting the index of the item in the collection?
Thanks
Dim index As Integer = CType(sender, MenuItem).Index
but ToolStripMenuItems do not have an Index property so I can set the Tag or
MergeIndex property of those items and use that.
But that is error prone since changes in the menu require that those values
be kept synchronized.
Even though there is no Index property I have the feeling that the
collection might have the equivalent.
Is there a way of getting the index of the item in the collection?
Thanks