MPIon
Well-known member
I am working with WinForms, Net 7, c# 11
I have a ToolStripMenuItem with several drop down items. e.g.
All I want to do is get the text shown on one of the drop down menu items. e.g. if I asked for item 2, it would give me "Drop Down Item 2"
I am sure this must be simple, but there does not seem to be a suitable property available. I have searched the internet and can't find a solution, nor is it fathomable in the Microsoft documentation.
p.s. When I want this, all I know is the index of the item, not it's name. I could do something simple like storing the text of the current item and using that,
but I thought this would be a more elegant solution if I can find one.
I have a ToolStripMenuItem with several drop down items. e.g.
C#:
Main Menu Item
Drop Down Item 1
Drop Down Item 2
etc
I am sure this must be simple, but there does not seem to be a suitable property available. I have searched the internet and can't find a solution, nor is it fathomable in the Microsoft documentation.
p.s. When I want this, all I know is the index of the item, not it's name. I could do something simple like storing the text of the current item and using that,
but I thought this would be a more elegant solution if I can find one.
Last edited by a moderator: