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
183 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run time Error 4 47
Close form "before" open 3 40
VB.NET (2008) - Refactoring Question 2 21
how to check to see if datatable has headers or not 2 28
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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