Solved

Resolution of Monitor

Posted on 1998-11-02
5
193 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 100 total points
ID: 1442803
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

749 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