System.Windows.Forms.FormStartPosition Enumeration

Specifies the initial position of a form.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum FormStartPosition

Remarks

This enumeration is used by the Form.StartPosition property of the System.Windows.Forms.Form class. It represents the different start positions of the form. The default start position is WindowsDefaultLocation.

Members

Member NameDescription
CenterParent

The form is centered within the bounds of its parent form.

CenterScreen

The form is centered on the current display, and has the dimensions specified in the form's size.

Manual

The position of the form is determined by the Control.Location property.

WindowsDefaultBounds

The form is positioned at the Windows default location and has the bounds determined by Windows default.

WindowsDefaultLocation

The form is positioned at the Windows default location and has the dimensions specified in the form's size.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0