Tag Archives: screen.height

Get the screen size in pixels using Visual Basic

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
 


This will work for VB 6.0 and 5.0

Dim screenWidth as Long
Dim screenHeight as Long

screenWidth = Screen.Width \ App.TwipsPerPixelX
 
screenHeight = Screen.Height \ App.TwipsPerPixelY