.NET Samples - Windows Forms: Document Layout
This section includes the following samples:
Anchoring Sample
Dockman Sample
Docking Sample
Anchoring Sample
This sample demonstrates the use of the Anchor property to position controls within their container.
Link to the online sample documentation
Link to the online sample source code
Namespaces used in this sample:
System; System.Windows.Forms; System.Drawing; System.ComponentModel
Classes used in this sample:
Form; Component; Style; TextBox; Container; Control; Button; Icon; EventHandler; Message; Application; SystemInformation; MessageBox; EventArgs; Thread
Dockman Sample
This sample allows the user to dynamically set the various docking and anchoring properties on a control to view the effects those properties would have.
Link to the online sample documentation
Link to the online sample source code
Namespaces used in this sample:
System; System.Windows.Forms; System.Drawing; System.ComponentModel
Classes used in this sample:
Form; Style; Button; Control; RadioButton; EventHandler; CheckBox; Component; Panel; ToolTip; Group; GroupBox; Container; EventArgs; Icon; Application; SystemColors; Thread
Docking Sample
This sample demonstrates the use of the Dock property to position controls within their container.
Link to the online sample documentation
Link to the online sample source code
Namespaces used in this sample:
System; System.Windows.Forms; System.Drawing; System.ComponentModel; System.Collections
Classes used in this sample:
Button; Form; Panel; Style; ToolBar; ToolBarButton; StatusBar; Component; StatusBarPanel; Control; EventArgs; SystemColors; EventHandler; Container; Hashtable; Hash; Thread; Application; Icon; ToolBarButtonClickEventHandler; ToolTip; ToolBarButtonClickEventArgs