Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DockMan Sample: Demonstrates Docking and Anchoring in a Windows Forms Application

DockMan Sample: Demonstrates Docking and Anchoring in a Windows Forms Application

Visual Studio .NET 2003

The DockMan sample illustrates the docking and anchoring functionality of Windows Forms in a .NET Framework application, focusing on docking and anchoring a button control.

Building and Running the Sample

To build and run DockMan using Visual Studio

  1. In the Visual Studio IDE, open the solution file DockMan.sln.
  2. In Solution Explorer, right-click the DockMan solution.
  3. On the shortcut menu, click Build.
  4. On the Debug menu, click Start.

Test the docking capabilities of the button control by docking it in different locations. You need to resize the window to see the effect of anchoring.

Keywords

This sample demonstrates the following keywords:

AnchorStyles; DockStyle

See Also

Managed Extensions for C++ Samples

Show:
© 2015 Microsoft