System.Windows.Forms.Form.Location Property

Gets or sets the System.Drawing.Point that represents the upper-left corner of the System.Windows.Forms.Form in screen coordinates.

Syntax

[System.ComponentModel.SettingsBindable(true)]
public System.Drawing.Point Location { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

System.Drawing.Point is a structure, which means that it is a value type. If you access a property in System.Drawing.Point, a copy of the property is returned. Therefore, changing the System.Drawing.Point.X or System.Drawing.Point.Y properties of the System.Drawing.Point returned from the Control.Location property will not affect the Control.Left, Control.Right, Control.Top, or Control.Bottom property values of the System.Windows.Forms.Form. To adjust these properties, set each property value individually, or set the Form.Location property with a new System.Drawing.Point.

The Form.Location property gets or sets the Control.Location property of the System.Windows.Forms.Control base class, and sets the System.ComponentModel.SettingsBindableAttribute.Bindable property to true.

Requirements

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