This example creates a custom toggle switch control that displays text within its content:
Note
You can also use a toggle button shipped as part of DevExpress WinForms UI Templates.
DevExpress WinForms UI Templates include predesigned and ready-to-use UI components and forms (C# and Visual Studio 2022 only).
- CustomToggleSwitch.cs (VB: CustomToggleSwitchPainter.vb)
- CustomToggleSwitchPainter.cs (VB: CustomToggleSwitchPainter.vb)
- Form1.cs (VB: Form1.vb)
(you will be redirected to DevExpress.com to submit your response)