使用Winform,是否可以进行“无线电检查”。一个菜单项?

有帮助吗?

解决方案

是的,请参阅 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;
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top