Toggle Button - C# WinForms UI Design
The Toggle Button for WinForms is designed to manage states on your .NET Windows Forms. It has similar functionality of the check box. However, the Toggle button control provides a different visual effect and more flexible stylish design than the standard check box button. This Toggle button control add state management similar to that of the Check Box with the addition of a special toggle state changing event which provides extra control over its state. Related Button UI for C# Windows Forms Applications
How to Manage the Toggle Button StatesToggle State Properties
The Toggle State property is used to set the state of Toggle Button. How to Manipulate Events
.NET Forms developers could manipulate the Toggle State Changed event to control the Toggle Button to change when users toggle the button. The event handler will pass the parameter of State Changed Event Args that includes a Toggle State member.
It is also possible to operate the event of Toggle State Change to cancel the change of the toggle states here. The following are some properties for manipulating the event of Toggle State Change: Properties Available:
The following is a sample C# code for manipulating the Toggle State Change event. The C# code will let a Toggle Button to toggle only if the value of a second Toggle Button is set to off. The toggle will be canceled if developers set both the value of the second button toggle state and the value of the New Value as On. The event of Toggle State Changed will only triggers and changes the property of Text when the value of Toggle State Change is not Cancel.
|
UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control Add Button in C#Text FormattingCheckBox in C#CheckBox Data BindingDropdown ButtonRadio Button in C#Radio Button DesignRadio Button StateRepeat ButtonSplit Button in C#Toggle Button in C#MnemonicsWinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |