Form.SetDesktopLocation Method (Int32, Int32)
.NET Framework (current version)
Sets the location of the form in desktop coordinates.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- x
-
Type:
System.Int32
The x-coordinate of the form's location.
- y
-
Type:
System.Int32
The y-coordinate of the form's location.
Desktop coordinates are based on the working area of the screen, which excludes the taskbar. You can use this method to position your form on the desktop. Since desktop coordinates are based on the working area of the form, you can use this method to ensure that your form is completely visible on the desktop. This method is intended to be used primarily for top-level forms; use the LayoutMdi method to position multiple-document interface (MDI) child forms.
.NET Framework
Available since 1.1
Available since 1.1
Show: