Edit this page

Getting Started

You can add ____ either at design time or at run time:

Design Time

  1. To add a RadToggleButton to your form, drag a RadToggleButton from the toolbox onto the surface of the form designer.
  2. In the Properties section in Visual Studio you can change the Text property.
  3. Double click the RadToggleButton at design time in order to generate the ToggleStateChanged event handler.

Run Time

To programmatically add a RadToggleButton to a form, create a new instance of a RadToggleButton, and add it to the form Controls collection.

Adding a RadToggleButton at runtime

RadToggleButton myToggleButton = new RadToggleButton();
myToggleButton.Text = "Pin";
myToggleButton.Width = 150;
myToggleButton.Height = 50;
this.Controls.Add(myToggleButton);

Dim myToggleButton As New RadToggleButton()
myToggleButton.Text = "Pin"
myToggleButton.Width = 150
myToggleButton.Height = 50
Me.Controls.Add(myToggleButton)