Solved

Resolution of Monitor

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

758 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

18 Experts available now in Live!

Get 1:1 Help Now