Export (0) Print
Expand All

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

  1. Open the solution file buttonctl.sln in the IDE.
  2. Build either the Debug or Release configuration.
  3. 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

See Also

Managed Extensions for C++ Samples

Show:
© 2015 Microsoft