• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

VB.net Get the width/height of the screen of the users computer

Hi

Is it possible to gather the width/height of the users screen using VB.net code.
I am having issues with controls moving around  on a TaskPane as the users screen sizes get larger
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Rgonzo1971Commented:
Hi,

Maybe

Dim screenWidth as Integer = Screen.PrimaryScreen.Bounds.Width
Dim screenHeight as Integer = Screen.PrimaryScreen.Bounds.Height

Regards
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now