【发布时间】:2010-12-20 22:48:30
【问题描述】:
使用 Winform,是否可以“无线电检查”菜单项?
【问题讨论】:
标签: c# winforms checkbox radio-group
使用 Winform,是否可以“无线电检查”菜单项?
【问题讨论】:
标签: c# winforms checkbox radio-group
是的,请参阅MSDN
// This method is called from the constructor of the form to set up the menu items.
public void ConfigureMyMenus()
{
/* Set all of these menu items to Radio-Button check marks so the user can see
that only one color can be selected at a time. */
menuItemRed.RadioCheck = true;
menuItemBlue.RadioCheck = true;
menuItemGreen.RadioCheck = true;
}
【讨论】: