الاختيار القائمة الراديو
-
05-07-2019 - |
سؤال
وعن طريق Winform، هل من الممكن أن "الاختيار راديو" عنصر قائمة؟
المحلول
ونعم انظر> وأ href = "http://msdn.microsoft.com/en-us/library/system.windows.forms.menuitem.radiocheck٪28VS.80٪29.aspx" يختلط = "نوفولو noreferrer" > 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;
}
لا تنتمي إلى StackOverflow