Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Resolution of Monitor

Posted on 1998-11-02
5
Medium Priority
?
196 Views
Last Modified: 2010-04-30
What code is required to do the following:

Return and change the current resolution of a monitor to specified setting.
If you can't return the current resolution, how do you return the number of monitors currently connected to the PC ?
0
Comment
Question by:YourMajesty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Expert Comment

by:Poddy
ID: 1442799
To return the resolution use...

screen.Width/screen.TwipsPerPixelX
screen.Height/screen.TwipsPerPixelY

0
 
LVL 3

Expert Comment

by:altena
ID: 1442800
And to change the resolution from a VB app would be rude at least.....
0
 

Author Comment

by:YourMajesty
ID: 1442801
With the change resolution thing, all I want is to change the monitor to low resolution so a game could run. I think that's VGA isn't it.
0
 
LVL 3

Expert Comment

by:altena
ID: 1442802
Now you mention it....

DirectX has features to change the resolution, (for gaming)
Its just that I have no idea how to use that from VB.

Good Luck
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 300 total points
ID: 1442803
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question