Edit this page

Getting Started

You can add a RadToggleSwitch to your form either at design time or at run time:

Design Time

  1. Drag a RadToggleSwitch from the toolbox and drop it onto the surface of the form’s designer.
  2. Double click the RadToggleSwitch at design time in order to generate the ValueChanged event handler.

Run Time

Adding RadToggleSwitch programmatically: create a new instance of RadToggleSwitch and add it to the Form.Controls collection:

Adding RadToggleSwitch programmatically

Telerik.WinControls.UI.RadToggleSwitch toggleSwitch = new Telerik.WinControls.UI.RadToggleSwitch();

Dim toggleSwitch As New Telerik.WinControls.UI.RadToggleSwitch()

Figure 1: RadToggleSwitch added at run time

buttons-toggleswitch-overview 002

Was this article helpful? Yes No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article