473,323 Members | 1,537 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,323 software developers and data experts.

Is there any way to get the monitor native resolution.?

Hi,

I need to get the the display monitor native resolution.I have tried
SystemInformation.PrimaryMonitorSize. it is giving the exisiting resolution
of the display monitor that is connected.
Please help me out to find the way to get the native resolution of the
monitor that is connected

-BMK
Jul 14 '08 #1
6 5285
Hi BMK,

Are you trying to find out the maximum resolution supported by your
monitor?

Thanks,
Christian
Jul 14 '08 #2
BMK wrote:
Hi,

I need to get the the display monitor native resolution.I have tried
SystemInformation.PrimaryMonitorSize. it is giving the exisiting resolution
of the display monitor that is connected.
Please help me out to find the way to get the native resolution of the
monitor that is connected

-BMK
Some monitors have a native resolution, some don't.

If it's an LCD monitor, the native resolution is the highest resolution
that it supports.

If it's a CRT monitor, it doesn't have a native resolution.

--
Göran Andersson
_____
http://www.guffa.com
Jul 14 '08 #3
Hi Christian,

For some monitors maximum resolution is different from native resolution.
is there any way to get maximum resolution supported by a monitor.?

-BMK

"Christian Blackburn" <ch*****************@yahoo.comwrote in message
news:04**********************************@e53g2000 hsa.googlegroups.com...
Hi BMK,

Are you trying to find out the maximum resolution supported by your
monitor?

Thanks,
Christian

Jul 14 '08 #4
Is it possible for me to findout the

1. whether it has native resolution or not
2. if it has native how to findout the highest resolution

i read some thing abt it here
http://www.projectorcentral.com/maximum_resolution.htm

-BMK

"Göran Andersson" <gu***@guffa.comwrote in message
news:en**************@TK2MSFTNGP06.phx.gbl...
BMK wrote:
>Hi,

I need to get the the display monitor native resolution.I have tried
SystemInformation.PrimaryMonitorSize. it is giving the exisiting
resolution of the display monitor that is connected.
Please help me out to find the way to get the native resolution of the
monitor that is connected

-BMK

Some monitors have a native resolution, some don't.

If it's an LCD monitor, the native resolution is the highest resolution
that it supports.

If it's a CRT monitor, it doesn't have a native resolution.

--
Göran Andersson
_____
http://www.guffa.com

Jul 14 '08 #5
DirectX9 seems an overkill, but does the enumeration of the supported modes
quite nicely:

foreach( AdapterInformation ai in Manager.Adapters)
{
// ai.CurrentDisplayMode.Width,
// ai.CurrentDisplayMode.Height,
// ai.CurrentDisplayMode.Format

foreach( DisplayMode dm in ai.SupportedModes)
{
// dm.Width,
// dm.Height,
// dm.Format (RGB)
}
}
Note that it only pumps out modes supported by DirectX. Some old graphic
cards, are example, support 24 bits - R8G8B8, but DirectX does NOT support
that mode, so it won't be listed.

If you use generic driver for the monitor, some mode may not work properly
(so the standard button to click within few seconds when you dynamically
change of resolution).

If you have two adapters, both are reported.

I am not aware of a 'native' mode. Do you mean 'actual', if so, use the
CurrentDisplayMode rather than using the innermost enumeration.

Vanderghast, Access MVP

<BMKwrote in message news:Ow**************@TK2MSFTNGP03.phx.gbl...
Hi,

I need to get the the display monitor native resolution.I have tried
SystemInformation.PrimaryMonitorSize. it is giving the exisiting
resolution of the display monitor that is connected.
Please help me out to find the way to get the native resolution of the
monitor that is connected

-BMK
Jul 16 '08 #6
I am not aware of a 'native' mode. Do you mean 'actual', if so, use
the CurrentDisplayMode rather than using the innermost enumeration.
LCDs have a native display resolution -- the actual number of crystals
physically comprising the screen. Switching to any other resolution forces
the display to continually stretch/resample to the native resolution,
resulting in blurriness.
Jul 16 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: KJM | last post by:
How can I detect if the user has dual monitors and then how do I control which monitor a form is displayed on. Currently my forms always come up on my right monitor. What if I want to have it...
1
by: Maxine | last post by:
I work on a 19" monitor. To approximately test different resolutions, I use "Sizer" software (http://www.brianapps.net/sizer.html) to test in 800x600 and 460x800. However, that is viewing the...
10
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not...
6
by: Yeah | last post by:
I just purchased a Samsung 930B flat-panel monitor. Its *recommended* resolution is 1280x1024. I was previously running at 1024x768, but I also work with graphics. Any images that were square or...
2
by: Bill Nguyen | last post by:
Is there a way to send output from a .NET app to a selected monitor screen in a 3-monitor client desktop? Currently, my app sends output to 3 windows then I have to move/drag each of them to the...
3
by: akbar | last post by:
I googled and searched in archive. All I can find is finding resolution with Tkinter and pygame. Any idea to find monitor resolution with standard python module? I can check from output of: xprop...
2
by: dpicella | last post by:
I have a semi-urgent need to solve a problem in Java. I have three small images that I need to hold to a constant size (e.g., 1 inch) regardless of both monitor size and resolution. Basically...
4
by: =?Utf-8?B?a2F5a28yMDAw?= | last post by:
Hey folks, I'm having a bit of an issue with how Windows Vista (or my ASUS notebook) handles closing my notebook lid. If I have an external monitor (my TV through S-Video) connected to my...
5
by: Polaris | last post by:
Hi Experts: Using C#, is there a way to get the display monitor's size in inches (for example, I'd like to know if the monitor size is 15", 17" or whatever)? Thanks in Advance Polaris
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.