New to Telerik UI for WinForms? Download free 30-day trial

Getting Started with WinForms ToggleButton

This article shows how you can start using RadToggleButton.

Adding Telerik Assemblies Using NuGet

To use RadToggleButton when working with NuGet packages, install the Telerik.UI.for.WinForms.AllControls package. The package target framework version may vary.

Read more about NuGet installation in the Install using NuGet Packages article.

With the 2025 Q1 release, the Telerik UI for WinForms has a new licensing mechanism. You can learn more about it here.

Adding Assembly References Manually

When dragging and dropping a control from the Visual Studio (VS) Toolbox onto the Form Designer, VS automatically adds the necessary assemblies. However, if you're adding the control programmatically, you'll need to manually reference the following assemblies:

  • Telerik.Licensing.Runtime
  • Telerik.WinControls
  • Telerik.WinControls.UI
  • TelerikCommon

The Telerik UI for WinForms assemblies can be install by using one of the available installation approaches.

Defining the RadToggleButton

You can add RadToggleButton 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)

Telerik UI for WinForms Learning Resources

In this article