We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

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.

windows forms toggle button


Configurable Toggle States

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.

on and off state of windows forms toggle buttons


windows forms toggle button with image

Display Mode

The WinForms Toggle button comes with two display modes to display either text or images over the button and slider to represent the states.


Custom Renderer

Its appearance can be customized through its custom renderer support. With this support, borders and slider colors can be customized at application level.

windows forms toggle button customization


WinForms Toggle Button Code Example

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);
      }
   }
}



95+ WINDOWS FORMS CONTROLS

Frequently Asked Questions

The Syncfusion WinForms Toggle Button provides the following:

  • Two states with contrasting behaviors configured as required, like in/out, on/off, and more.
  • Display either text or image over buttons to represent the states.
  • Allows the end-user to apply custom styles at application level.
  • Simple configuration and API.
  • One of the best WinForms Toggle Buttons in the market that offers a feature-rich UI.
  • Extensive demos and documentation to learn quickly and get started with WinForms Toggle Button.

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.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Syncfusion Windows Forms Resources

Awards

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.

Up arrow icon