Where is the RadioCheck property for menu items?
I am creating a form with a menu item. I want to display a radio button on it. However, I cannot find the RadioCheck property in the Properties pane, in order to set it to 'true.' Here is the snippet of this method:
privatevoid oToolStripMenuItem_Click(object sender,EventArgs e)
{
//Checks the menu itemoToolStripMenuItem.Checked =
true;
// Unchecks the menu item
oToolStripMenuItem.Checked =
false;
}
[922 byte] By [
Igor_G] at [2007-12-17]
RadioCheck is a property of
MenuItem (pre-2.0 menus) not of
ToolStripMenuItem.
ToolStripMenuItem doesn't expose the ability to use radio buttons anymore. Whether this was a conscious effort or an oversite I don't know. Seems like the functionality is still desirable. You can still use
MenuItem in
MainMenu classes (not in
ToolStrip classes) but you'll need to add the control to the Toolbox manually.
Michael Taylor - 11/29/05