Mousa Alfhaily
Mousa Alfhaily

Reputation: 1290

How i can know the Screen resolution in VB-2010?

I need to know how i can know the Screen resolution within vb-2010, show the Screen resolution in "TextBox" for example. And know the account name, if i can.

Upvotes: 0

Views: 83

Answers (1)

WindyHen
WindyHen

Reputation: 328

you can use

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

Read more from this, excellent explanation from Cody Gray

Upvotes: 1

Related Questions