Solved

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

Posted on 2004-05-02
2
190 Views
Last Modified: 2010-04-15
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
Comment
Question by:CoderCat
2 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 125 total points
ID: 10975511
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
 

Expert Comment

by:djacosta
ID: 10979749
Have you tried the ButtonState Enumeration:

ButtonState.Pushed?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Greetings C# program 17 124
Finally almost got it 5 48
Firing an ASP.NET event on selection of a JQuery datepicker 4 30
Please explain purpose of GZIP 4 34
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question