代码之家  ›  专栏  ›  技术社区  ›  Martin Delille

收音机菜单检查

  •  1
  • Martin Delille  · 技术社区  · 15 年前

    使用WinForm,是否可以“无线检查”菜单项?

    1 回复  |  直到 9 年前
        1
  •  2
  •   RvdK    15 年前

    是的,看见了 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;
    }