Click here to Skip to main content
15,905,913 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
HI,
I need a code for toggle button to switch on and off in windows form application.

Regards.
Posted

If your app is windows based you can use checkbox as toggle button.
For this you have to change its Appearance property to Button and you can change FlatStyle property to Flat.
 
Share this answer
 
Add a button to your form using the toolbox in Visual Studio. After that, you can handle the appropriate event(s) to do what you want. Apparently you want to toggle something, but you didn't tell us what that something is.
 
Share this answer
 
See code for save button[^]. All your questions of this sort are useless.

See also: C# code for the update button[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900