tags:

views:

26

answers:

1

How do I reference the screen height and width in vb.net? For example, the bottom right corner's locations, the top right corner's locations, etc.

I tried My.Computer.Screen but couldnt find anything that told me the size.

+2  A: 

You can use:

My.Computer.Screen.Bounds

or:

Screen.PrimaryScreen.Bounds

Bounds is a rectangle that provides the size. Alternatively, you can look at the WorkingArea, which will not include the task bar and docked windows.

Reed Copsey
So for the bottom right example, what would it be?
Cyclone
Nevermind, got it! THANKS!
Cyclone