Defines constants that specify the direction in which consecutive user interface (UI) elements are placed in a linear layout container
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The enumeration describes the flow direction of consecutive UI elements, typically controls, on a design surface or container such as a form. This enumeration is used by linear layout containers such as FlowLayoutPanel, which stores this information internally in the FlowLayoutPanel.FlowDirection property.
The determines where a new control is placed by default when it is added to a supporting container. The flow direction of the container, along with the Anchor and Dock properties of each contained control, determine the rearrangement of controls when their container is resized.
The FlowLayoutPanel control provides a FlowBreak property to its child controls. Setting the value of the FlowBreak property to true causes the FlowLayoutPanel control to stop laying out controls in the current flow direction and wrap to the next row or column.
Private Sub flowTopDownBtn_CheckedChanged( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles flowTopDownBtn.CheckedChanged Me.FlowLayoutPanel1.FlowDirection = FlowDirection.TopDown End Sub Private Sub flowBottomUpBtn_CheckedChanged( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles flowBottomUpBtn.CheckedChanged Me.FlowLayoutPanel1.FlowDirection = FlowDirection.BottomUp End Sub Private Sub flowLeftToRight_CheckedChanged( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles flowLeftToRight.CheckedChanged Me.FlowLayoutPanel1.FlowDirection = FlowDirection.LeftToRight End Sub Private Sub flowRightToLeftBtn_CheckedChanged( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles flowRightToLeftBtn.CheckedChanged Me.FlowLayoutPanel1.FlowDirection = FlowDirection.RightToLeft End Sub
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.