RB***********@gmail.com wrote:
Hello,
Is there a way to group menu items so they act like radio buttons -
that is when one is checked the others in the same group are unchecked
- I'm looking for a property to group menu items but can't see it.
Delphi's VCL has GroupIndex for example.
I don't believe there's anything of the sort in .net, though it isn't
hard to implement -- just use a generic handler for all the buttons, and
do something like:
private void emulateRadio_click(object sender, EventArgs e)
{
NumberOneToolStripButton.Enabled = (sender ==
NumberOneToolStripButton);
NumberTwoToolStripButton.Enabled = (sender ==
NumberTwoToolStripButton);
NumberThreeToolStripButton.Enabled = (sender ==
NumberThreeToolStripButton);
}
Chris.