Changing screen resolution using VB6
Changing screen resolution using VB6
(OP)
Hi VBForum,
How can I change the screen resolution using VB6? Any help will appreciated, thanks.
Regards,
gtsim
How can I change the screen resolution using VB6? Any help will appreciated, thanks.
Regards,
gtsim
RE: Changing screen resolution using VB6
I you really need to upset your users and risk legal action them there are plenty of ready made projects out there to change screen resolution, for example:
http:/
HOWEVER:
1. Most computer users will be very upset if you mess with their hardware settings
2. Be prepared for the lawsuits which follow when your program damages monitors. There are many monitors in use that will be physically damaged if driven at screen resolutions beyond their capabilities.
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
Steam Engine enthusiasts: www.essexsteam.co.uk
RE: Changing screen resolution using VB6
Review before implications before use.
Best wishes,
gtsim
RE: Changing screen resolution using VB6
The url you have given claims it does not change setting(hardware or registry). We do not wish to drive monitors at capabilities outside there range. For example we want to set the resolutions to the most standard setting (e.g. 1024x768). Virtually all monitors support this resolution.
Do you have any bad experience specially using the code given in this url? Kindly advice.
Regards,
gtsim
RE: Changing screen resolution using VB6
The program obviously can't make hardware changes, but does change software video card settings.
If you must do this, then at least ensure that you are only changing down, not up. Changing a 1600 x 1200 screen to 1024 x 768 won't do physical damage (it will only annoy the user), but changing 640 x 480 to 1024 x 768 may well physically damage the monitor.
To check current settings you can use GetSystemMetrics API. There is a worked example at:
ht
I would still advise designing your app so that it works at more than one screen resolution, for instance by dynamically resizing controls etc.
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
Steam Engine enthusiasts: www.essexsteam.co.uk
RE: Changing screen resolution using VB6
Thanks John for the advice and alert. It is very much appreciated. Shall visit the link given in your response and review the whole subject of screen resolution changes.
Thanks once again and best wishes,
gtsim