System.Windows.Forms.Form.StartPosition Property

Gets or sets the starting position of the form at run time.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.FormStartPosition.WindowsDefaultLocation)]
public FormStartPosition StartPosition { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property enables you to set the starting position of the form when it is displayed at run time. The form’s position can be specified manually by setting the Form.Location property or use the default location specified by Windows. You can also position the form to display in the center of the screen or in the center of its parent form for forms such as multiple-document interface (MDI) child forms.

This property should be set before the form is shown. You can set this property before you call the erload:System.Windows.Forms.Form.Show or erload:System.Windows.Forms.Form.ShowDialog method or in your form's constructor.

Requirements

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