Switch button control is designed to be used anywhere you need to represent the two state setting in your application. For example web server running, auto-save option in your application etc. Here is how control looks like in such an usage case:
In screen-shot above we customized OFF state background on middle switch to better express the state control represents. Contrast that with following screen-shot shows the default appearance of control in Office 2010 style:
Control colors can be completely customized per-instance and for all instances by changing Office2007Color table. Here is screen-shot that shows control with customized colors:
Notice that all colors are nice looking gradients, but when you customize colors you simply set single color for the state and using that single color we derive great looking gradient. Simple to customize and great looking.
Switch button will also animate the state transition to provide pleasing visual effect:
Download fully functional trial of DotNetBar Suite for Windows Forms now and experience how easy it is to create professional looking applications.
![]() |
DotNetBar is winner of Visual Studio Magazine Readers’ Choice Award as the Best User Interface Component for Windows Forms among more than 30 UI components. Thank you for voting and choosing DotNetBar. |