screen resolution

G

Guest

I want to know the screen resolution before launch my VB .NET windows form so the form can fit the screen nicely. Is that possible? Thanks.
 
E

Eric Fleet

Screen.PrimaryScreen.Bounds.Size.Width
Screen.PrimaryScreen.Bounds.Size.Height
-----Original Message-----
I want to know the screen resolution before launch my
VB .NET windows form so the form can fit the screen
nicely. Is that possible? Thanks.
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?Q2hlbg==?= said:
I want to know the screen resolution before launch my VB .NET windows
form so the form can fit the screen nicely.

Monitor size:

'SystemInformation.PrimaryMonitorSize'
'SystemInformation.WorkingArea'
'SystemInformation.VirtualScreen'
'Screen.PrimaryScreen.Bounds'
'Screen.PrimaryScreen.WorkingArea'

When using multiple monitors:

'Screen.AllScreens'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top