How to change the checked state of a ToolStripItem in Winforms?
You need to cast to ToolStripMenuItem
:
((ToolStripMenuItem)menuItem).Checked = true;
You need to cast to ToolStripMenuItem
:
((ToolStripMenuItem)menuItem).Checked = true;