/toggle-switch

This is a C# Toggle Switch Control. Simply download the DLL file in the Debug folder, go to Visual Studio, right click on a toolbox section, and press choose items. There, press the Browse button and then open the DLL file you downloaded. The control will then be added to the toolbox.

Primary LanguageC#Apache License 2.0Apache-2.0

C# Toggle Switch

The Winforms Toggle Switch is a custom control you can import into your toolbox. It is designed to have a flat modern feel to it to make it feel as professional as possible.

How to Use

Downloading

To download to custom control, navigate to the following path :

toggle-switch/ToggleSlider/bin/Debug/ToggleSlider.dll

Click "View Raw", and the dll file will automatically download.

Prerequisites

You will need the following to be able to use this control :

  • .NET Framework
  • Windows OS
  • Visual Studio

Installing

To install this control into the Visual Studio toolbox, open your Visual Studio Winforms Project. Then, open your toolbox, and then right click on any section of the toolbox and then select CHOOSE ITEMS. A window will appear. It will load all of the controls imported. Click the "Browse" button in the window, and find the DLL file you downloaded. Select it and click Open. You should now be able to drag the Toggle Switch into the form and program it.

Here is an example of a program I made using this :

Toggle Slider Example

Customization and events

Currently, the toggle switch control supports a mediocre amount of control. New values and events may be added in the future.

  • ToggleBarText
  • ToggleCircleColor
  • ToggleBarColor

Available Events :

  • CheckChanged

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details