Advertisement

03.27.2008 at 07:51PM PDT, ID: 23276320
[x]
Attachment Details

Get list of valid screen resolutions

Asked by lordicarus in .NET Framework 2.x, Microsoft Visual C#.Net, .NET Framework 3.x versions

Tags: ,

I want to get a list of the valid screen resolutions on the current computer from code, whether it requires p/invoke or there is a managed function to do this makes no difference.  

Please note that I am not looking for the current resolution, this is easy, screen.primaryscreen.bounds.  I want to list all the resolutions that would be valid on the selected monitor.

Essentially, all the values that are in the Windows Display Settings when you go to change your resolution.  This area lists all the valid screen resolutions for the current monitor which is exactly what I want.

I know this is possible because when you run remote desktop and look at the display options, it gives you the same list and this is not a windows built in program, so it at the very least has to exist in API somewhere.Start Free Trial
[+][-]03.27.2008 at 08:23PM PDT, ID: 21227781

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 08:28PM PDT, ID: 21227798

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.x, Microsoft Visual C#.Net, .NET Framework 3.x versions
Tags: C# .Net, 2.0 3.0 3.5
Sign Up Now!
Solution Provided By: jaime_olivares
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628