Question

Avec Winform, est-il possible de "contrôler la radio"? un élément de menu?

Était-ce utile?

La solution

Oui, voir 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;
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top