Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Referencing screen height and width in vb.net

Tags:

vb.net

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.

like image 842
Cyclone Avatar asked Aug 27 '09 23:08

Cyclone


1 Answers

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.

like image 139
Reed Copsey Avatar answered Oct 10 '22 01:10

Reed Copsey