Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining Desktop area

Status
Not open for further replies.

bigtimmin

MIS
Apr 12, 2005
125
US
In VB6, you can use the Sysinfo class to determine the WorkareaHeight, Top, Left and Width. Does anyone know how to get this information using VB.Net?
 
I think its as easy as

Dim width As Integer = Screen.PrimaryScreen.Bounds.Width
Dim height As Integer = Screen.PrimaryScreen.Bounds.Height
 
Using Screen.PrimaryScreen.Height will include the taskbar area. If you want the true working area use:
Code:
MessageBox.Show(SystemInformation.WorkingArea.ToString())
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top