473,769 Members | 5,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Hi,

I need to get the the display monitor native resolution.I have tried
SystemInformati on.PrimaryMonit orSize. 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 5311
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
SystemInformati on.PrimaryMonit orSize. 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.com wrote in message
news:04******** *************** ***********@e53 g2000hsa.google groups.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.co mwrote in message
news:en******** ******@TK2MSFTN GP06.phx.gbl...
BMK wrote:
>Hi,

I need to get the the display monitor native resolution.I have tried
SystemInformat ion.PrimaryMoni torSize. 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( AdapterInformat ion ai in Manager.Adapter s)
{
// ai.CurrentDispl ayMode.Width,
// ai.CurrentDispl ayMode.Height,
// ai.CurrentDispl ayMode.Format

foreach( DisplayMode dm in ai.SupportedMod es)
{
// 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
CurrentDisplayM ode rather than using the innermost enumeration.

Vanderghast, Access MVP

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

I need to get the the display monitor native resolution.I have tried
SystemInformati on.PrimaryMonit orSize. 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 CurrentDisplayM ode 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
30452
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 always display on my left one? Thanks Ken
1
4468
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 screen on my monitors 0.24 mm Dot Pitch. I can pick up used 15" monitors for under $50, and my graphics card can run 2 monitors at the same time. Is it worth it to hook up a smaller monitor for a more accurate representation of what viewers with...
10
11620
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 IE. Thanks!
6
4338
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 circle looked about 10% taller than they should be. Naturally, correcting the screen resolution to the monitor's native of 1280x1024 fixed this and displayed more accurate proportions. Because this change made all screen elements microscopic,...
2
2695
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 proper monitor connected to the desktop. Thanks Bill
3
3519
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 -root _NET_DESKTOP_GEOMETRY(CARDINAL) . The problem is when you use Beryl or Xgl, it is not correct anymore because Beryl or Xgl set this value from amount of workspaces multiplied by monitor or screen resolution.
2
2655
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 it breaks down to this series of events. 1. Determine the users monitor size. 2. Determine the users screen resolution size. 3. Calculate the height and with to scale the image to for a constant size. 4. Display the image.
4
2449
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 laptop, but not used, and I close my notebook lid, it switches over to the TV automatically -- changing the desktop resolution from 1440x990 (my notebook resolution) to 1024x768 (the TV resolution). When I open my laptop lid, the desktop is...
5
13589
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
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5307
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.