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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to get the Screen Size

Status
Not open for further replies.

herb8

Programmer
Sep 4, 2001
45
0
0
US
How do I go about getting the machines screen size or dimensions. I figured it would be apart of the System.Enviroment but can't seem to find it. Any help would be great.
Thanks, Matt
 
I actually found my answer but just in case anyone wanted it, heres how.

Imports Scr = System.Windows.Forms.Screen

Dim scWidth as Int16 = Scr.PrimaryScreen.Bounds.Width
Dim scHeight as Int16 = Scr.PrimaryScreen.Bounds.Height

Hope this can help someone.
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top