473,378 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 6435
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JIM.H. | last post by:
Hello, Is there any way I can get current screen resolution setting in asp.net. I am trying to get it and set the reportviewer component size so that scroll bars on the reportviewer component are...
1
by: Carlos Albert | last post by:
Hi, I need to get some statistic about wich resolution are my customers using, how can I get the current screen resolution from the codebehind, so I can store it in a database?
5
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
7
by: Simon Wigzell | last post by:
I am putting together a website for a photographer. There will be a section where his clients can select various sizes of picture to order. I would to be able to display the images the actual size...
4
by: pedestrian via DotNetMonster.com | last post by:
I'm creating WinForm app. I would like to set the form position according to current Screen resolution. So how could I find the current resolution? Thanks... -- Message posted via...
9
by: Steve Wright | last post by:
Hi I'm developing a webpage that needs to include a different stylesheet depending on the screen resolution. I know that I could read the resolution in javascript and then do some sort of...
3
by: Thomas Morton | last post by:
This is a "thing" that has been annoying me all morning: and I can't work out how to do it. I need a way to get the DPI or screen resolution of the monitor that a script is currently runnign on....
0
by: William Heymann | last post by:
On Monday 09 June 2008, Thomas Morton wrote: run xdpyinfo and pull the values you need from that.
30
by: Ashit Vora | last post by:
Hi, I want to find the current time stamp in micro sec precision. The requirement is, my function is executed in an infinite loop. I measure a value and check if the value computed is what i...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.