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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.