[Mono-list] RadioButton

Gaurav Vaish gvaish@iitk.ac.in
Sat, 26 Jan 2002 18:58:32 +0530


Hello,

    See
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebUIWebControlsRa
dioButtonClassctorTopic.asp?frame=true

    You'll find a property "Appearance" associated with object RadioButton (I've
attached the code below for convenience) in the example for the constructor. But
I am unable to get its definition in the document. Nor do I find it available in
the class - using Reflection, I do not get this property.

    What's the heck for?

Cheers,
Gaurav Vaish
----------------------------

[C#]
private void InitializeMyRadioButton()
{
   // Create and initialize a new RadioButton.
   RadioButton radioButton1 = new 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.
   Controls.Add(radioButton1);
}