ComponentFactory / Krypton

Krypton WinForms components for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toggle Button

DrewLittler opened this issue · comments

Does anyone know how I can create a toggle button using a Krypton component?

Using raw winforms components, I'd use a CheckBox and set the appearance to "button". But I can't find anything like that on KryptonCheckBox. I've also had a look at the properties of KryptonButton to see if there's any support for making that work like a toggle button, but I couldn't spot anything there.

Cheers!

Hi @DrewLittler

I've actually created a toggle switch in this project, if that's what you mean?

Hi, try to use KryptonCheckButton and set colors on different states depending if it is checked or not, there are checked states

KryptonCheckButton! I totally didn't spot that! But I'll also look at the toggle switch too!