Solved

Resolution of Monitor

Posted on 1998-11-02
5
189 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now