Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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