Getting actual current screen resolution

J

Joe Withawk

Using the Scleen class you can get information about the bounds of the
displays on the system, but if you temporarely change the resolution (by
creating a full screen directx device with other resolution) the Screen
class does not update. It still shows the same value.

Apart from creating a window and maximizing it, what would be a way to query
the actual current screen resolution?
Another question would be if I can somehow query the connected monitor to
see what resolutions it does support. That could solve my problem as well.
 
M

Michael Nemtsev [MVP]

Hello Joe,

have u tried Screen.PrimaryScreen.WorkingArea ?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


JW> Using the Scleen class you can get information about the bounds of
JW> the displays on the system, but if you temporarely change the
JW> resolution (by creating a full screen directx device with other
JW> resolution) the Screen class does not update. It still shows the
JW> same value.
JW>
JW> Apart from creating a window and maximizing it, what would be a way
JW> to query
JW> the actual current screen resolution?
JW> Another question would be if I can somehow query the connected
JW> monitor to
JW> see what resolutions it does support. That could solve my problem as
JW> well
 
M

Michael Nemtsev [MVP]

Hello Joe,

SystemInformation.PrimaryMonitorSize ?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


JW> Apart from creating a window and maximizing it, what would be a way
JW> to query
JW> the actual current screen resolution?
JW> Another question would be if I can somehow query the connected
JW> monitor to
JW> see what resolutions it does support. That could solve my problem as
JW> well.
 
J

Joe Withawk

SystemInformation.PrimaryMonitorSize ?
have u tried Screen.PrimaryScreen.WorkingArea ?

I need this for all monitors and not just the primary. The screen
enumeration handles all monitors, but the Workingarea and bounds etc all
seem to relate to the sice set by the user in the displaysettings and not to
the actual current size.
 

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