Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

how to make a standard button into a togglebutton (not a ToolBarButton), IE stays down on press, then up on press again

I have looked and looked without success. I can do what I need to do in a ToolBar ... with side effects I don't want.

How can I make a standard "Windows.Forms.Button" act like a toggle button? IE: stay pushed until pushed again.

Please! I'm giving 125 points because I'm urgent, even though I think it's a 50 pointer.

Thanks beforehand.
0
CoderCat
Asked:
CoderCat
1 Solution
 
gregoryyoungCommented:
http://www.akadia.com/services/dotnet_user_controls.html

the last example is a toggle button.

however its alot easier to just set the appearance on a checkbox to be a toggle.(which inherits from ButtonBase as well)

0
 
djacostaCommented:
Have you tried the ButtonState Enumeration:

ButtonState.Pushed?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now