Screen resolution

P

Peter Simmonds

How can I get the current screen resolution from with VB?

Peter Simmonds
Northampton, UK
 
H

Herfried K. Wagner [MVP]

Peter,

Peter Simmonds said:
How can I get the current screen resolution from with VB?

Monitor size:

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

When using multiple monitors:

'Screen.AllScreens'
 
G

Guest

Hi Peter,

the easier mode is using:
Screen.PrimaryScreen.Bounds.Width
Screen.PrimaryScreen.Bounds.Height

Kind Regards,

Jorge Serrano Pérez
MVP VB.NET
 

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