Getting actual current screen resolution

  • Thread starter Thread starter Joe Withawk
  • Start date Start date
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.
 
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
 
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.
 
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.
 
Back
Top