I am using a MenuStrip
with two main ToolStripMenuItems
, each one of those has its "dropdown" with more ToolStripMenuItems that have the CheckOnClick
property set to true.
Now I am trying to retrieve the selected item, I know bool ToolStripMenuItem.Checked
exists, but how can I use a loop to get the ToolStripMenuItems
from each main ToolStripMenuItem
and then check which one has .Cheked is == true?
Or is there a better way to retrieve the checked ToolStripMenuItem
?