indy500fan
asked on
Custom button behavior
Friends,
Is it possible to create a button that, when you click it, it stays depressed, and changes text, and then when you click it again, it pops back up and the text changes back?
I want it to function somewhat like a radio button, in that it is boolean, if it is depressed, the condition is true. If not, it's false. Make sense?
Can anybod point me in the right direction, or is this something that is built in to the form controls in .NET?
btnPrintNotPrint.FlatStyle .Flat
btnPrintNotPrint.FlatSytle .Popup
Regards,
Eric
Is it possible to create a button that, when you click it, it stays depressed, and changes text, and then when you click it again, it pops back up and the text changes back?
I want it to function somewhat like a radio button, in that it is boolean, if it is depressed, the condition is true. If not, it's false. Make sense?
Can anybod point me in the right direction, or is this something that is built in to the form controls in .NET?
btnPrintNotPrint.FlatStyle
btnPrintNotPrint.FlatSytle
Regards,
Eric
CheckBox control with Appearance = Button is what you need.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'll Try It.
ASKER
Yep, that's it. Thanks!