469,575 Members | 1,472 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

Getting actual current screen resolution

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.

Jan 2 '08 #1
3 6183
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
JWUsing the Scleen class you can get information about the bounds of
JWthe displays on the system, but if you temporarely change the
JWresolution (by creating a full screen directx device with other
JWresolution) the Screen class does not update. It still shows the
JWsame value.
JW>
JWApart from creating a window and maximizing it, what would be a way
JWto query
JWthe actual current screen resolution?
JWAnother question would be if I can somehow query the connected
JWmonitor to
JWsee what resolutions it does support. That could solve my problem as
JWwell.
Jan 2 '08 #2
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
JWApart from creating a window and maximizing it, what would be a way
JWto query
JWthe actual current screen resolution?
JWAnother question would be if I can somehow query the connected
JWmonitor to
JWsee what resolutions it does support. That could solve my problem as
JWwell.
Jan 2 '08 #3
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.

Jan 3 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by JIM.H. | last post: by
1 post views Thread by Carlos Albert | last post: by
5 posts views Thread by Maxi | last post: by
7 posts views Thread by Simon Wigzell | last post: by
4 posts views Thread by pedestrian via DotNetMonster.com | last post: by
9 posts views Thread by Steve Wright | last post: by
3 posts views Thread by Thomas Morton | last post: by
reply views Thread by William Heymann | last post: by
30 posts views Thread by Ashit Vora | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.