Gets or sets the appearance of the radio button control is drawn.
[Visual Basic] Public Property Appearance As Appearance [C#] public Appearance Appearance {get; set;} [C++] public: __property Appearance get_Appearance(); public: __property void set_Appearance(Appearance); [JScript] public function get Appearance() : Appearance; public function set Appearance(Appearance);
One of the Appearance values. The default value is Normal.
Exception Type | Condition |
---|---|
InvalidEnumArgumentException | The assigned value is not one of the Appearance values. |
If the Appearance value is set to Normal then the RadioButton control is drawn with a circular check box. If the value is set to Appearance.Button then the RadioButton control is drawn as a button which may be toggled to an up or down state. Either type may display text, an image, or both.
The following example instantiates a RadioButton, gives it the appearance of a toggle button, and sets its AutoCheck property to false.
Private Sub MySub() ' Initialize a new RadioButton. Form1.RadioButton1 = New System.WinForms.RadioButton ' Make the radio button control appear as a toggle button. RadioButton1.Appearance = Appearance.Button ' Turn off the update of the display on the click of the control. RadioButton1.AutoCheck = False ' Add the radio button to the form. Form1.Controls.Add(RadioButton1) End Sub
RadioButton Class | RadioButton Members | System.WinForms Namespace | Appearance