This documentation is archived and is not being maintained.
Form::DesktopBounds Property
Visual Studio 2010
Gets or sets the size and location of the form on the Windows desktop.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Desktop coordinates are based on the working area of the screen, which excludes the taskbar. The coordinate system of the desktop is pixel-based. If your application is running on a multiple monitor system, the coordinates of the form are the coordinates for the combined desktop.
You can use this property to size and position a form relative to other forms or applications on the Windows desktop.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: