Saturday, October 1, 2011

How to create a Toggle Button in C#(.NET)

Toggle Buttons are necessary controls that a programmer may require for developing winform applications,but
toggle button Control is not included in the Standard C# IDE as a Control but it can be created by using the CheckBox Control.

The following steps describes creating a Toggle Button Control from a check box Control in C#

  • Add a Check Box Control to the Windows Form Application Form from the Tool Box
  • Select the Check box and from the Property windows change the Property 'Appearance' from 'Normal' to 'Button'.
  • Done the Toggle Button is Created and is Ready to Go.To use it add the To Do code to its Check Changed Event.


Post a Comment


The Source Codes Published in this Blog can be used freely for Educational purposes but should not be reproduced on any other Blog or Website without the consent of the author.