Link to home
Start Free TrialLog in
Avatar of eesrinivaassan
eesrinivaassan

asked on

1024x768 1024x768 1024x768 1024x768 1024x768 1024x768

Dear Experts,

One of my VB Application needs
screen resolution 1024x768 pixels.
It is 800x600 pixels by default.

After exiting the program I have to
change it to 800X600 pixels.

How can I change screen resolution
at VB-runtime?

Srin
Avatar of mdougan
mdougan
Flag of United States of America image

I'm not sure that there is a way to do that programatically, but even if there is, I do not recommend that you do so.  Some computers may not be able to handle that resolution, that is why when you switch between resolutions, the display driver forces you to "test" the new resolution.

You might switch someone into that mode, and then they can't see anything on their computer screen, and then they can't switch themselves back to another resolution (and they might not know what your program did, so they don't even know where to begin).

There are two things that you could do that would be good design choices.  First, you could redesign the application to fit 800X600.  This is a safe resolution to develop for.

If this is not possible, you can check to see what resolution they are in, and if they are not in 1024X768 you can display a message to the user that the application requires this display mode, and then don't let them run the application until they manually set the mode themselves.
ASKER CERTIFIED SOLUTION
Avatar of deighton
deighton
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike McCracken
Mike McCracken

learning
Avatar of eesrinivaassan

ASKER

Thank you deighton,
It works fine.

Srin