Avatar of Corrup7ioN
Corrup7ioN
Flag for United Kingdom of Great Britain and Northern Ireland asked on

ContextMenuStrip - Get index of clicked item

Hi,

I'm using a ContextMenuStrip for a button on my form and want to be able to get the index of an item in the menu when it is clicked. I've added a handler for the itemClicked event which will give me a reference to the menu and the clicked item, but I can't find a way to get the items index from this.

Can anyone help?

Thanks
Visual Basic.NETVisual Basic Classic.NET Programming

Avatar of undefined
Last Comment
Corrup7ioN

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
pivar

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Corrup7ioN

ASKER
Don't know how I missed that whilst spamming .index after every single object!

Thanks
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck