The WinForms Toggle Button (Toggle Switch) control allows you to toggle between two states that differ in their behavior like on/off, active/inactive and more. It supports to display either text or image over buttons and apply custom styles at application level.
Two states with contrasting behavior can be configured as needed like in/out, on/off, etc. Users can switch between these states using either a mouse click or the space key.
The WinForms Toggle button comes with two display modes to display either text or images over the button and slider to represent the states.
Its appearance can be customized through its custom renderer support. With this support, borders and slider colors can be customized at application level.
Easily get started with the WinForms Toggle Button using a few simple lines of C# code example as demonstrated below. Also explore our WinForms Toggle Button Example that shows you how to render and configure the WinForms Toggle Button.
using Syncfusion.Windows.Forms.Tools;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
ToggleButton toggleButton = new ToggleButton();
toggleButton.Location = new System.Drawing.Point(283, 178);
toggleButton.Size = new System.Drawing.Size(100, 40);
this.Controls.Add(toggleButton);
}
}
}
The Syncfusion WinForms Toggle Button provides the following:
You can find our WinForms Toggle Button demo on
GitHub location.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.