ButtonCtl Sample: Demonstrates the Windows Forms Button Control
Visual Studio .NET 2003
The ButtonCtl sample shows how to use Windows Forms in a .NET Framework application, focusing on the functionality of buttons (alignment, display type, and using images).
Building and Running the Sample
To build and run ButtonCtl using Visual Studio
- Open the solution file buttonctl.sln in the IDE.
- Build either the Debug or Release configuration.
- Start the application (inside or outside the debugger).
The application displays a panel containing a button. There is a collection of check boxes and a drop-down list for modifying the button's properties.
Classes and Keywords
This sample demonstrates the following classes:
Button; CheckBox; Panel; Label; ComboBox; GroupBox; Form
This sample demonstrates the following keywords:
Button::ImageAlign; Button::TextAlign; Button::FlatStyle; Button::Image; Button::BackgroundImage; Button::TabIndex; Button::Text; Button::add_Click