Screen resolution

  • Thread starter Thread starter Peter Simmonds
  • Start date Start date
P

Peter Simmonds

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

Peter Simmonds
Northampton, UK
 
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'
 
Hi Peter,

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

Kind Regards,

Jorge Serrano Pérez
MVP VB.NET
 
Back
Top