Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.57 KB

layout-in-windows-forms-controls.md

File metadata and controls

47 lines (34 loc) · 2.57 KB
title description ms.date helpviewer_keywords ms.assetid
Layout of controls
Learn about layout in Windows Forms controls, by means of the list of links to relevant topics in this article.
03/30/2017
layout [Windows Forms]
sizing [Windows Forms], automatic [Windows Forms]
Margin property [Windows Forms]
Padding property [Windows Forms]
99400e3a-720e-4f56-b68f-89df911a251c

Layout in Windows Forms Controls

Precise placement of controls on your form is a high priority for many applications. The xref:System.Windows.Forms?displayProperty=nameWithType namespace gives you many layout tools to accomplish this.

In This Section

AutoSize Property Overview
Describes the xref:System.Windows.Forms.Control.AutoSize%2A property and its role in layout.

Margin and Padding in Windows Forms Controls
Describes the xref:System.Windows.Forms.Control.Margin%2A and xref:System.Windows.Forms.Control.Padding%2A properties and their roles in layout.

How to: Align a Control to the Edges of Forms
Demonstrates how to use the xref:System.Windows.Forms.Control.Dock%2A property to align your control to the edge of the form it occupies.

How to: Create a Border Around a Windows Forms Control Using Padding
Demonstrates how to use the xref:System.Windows.Forms.Control.Padding%2A property to outline a control.

How to: Implement a Custom Layout Engine
Demonstrates how to implement a xref:System.Windows.Forms.Layout.LayoutEngine for arranging Windows Forms controls.

Reference

xref:System.Windows.Forms.TableLayoutPanel
Provides reference documentation for the xref:System.Windows.Forms.TableLayoutPanel control.

xref:System.Windows.Forms.FlowLayoutPanel
Provides reference documentation for the xref:System.Windows.Forms.FlowLayoutPanel control.

See also