by Troy Mac (2 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(4 Votes)
This code will show you how to save the current Screen Resolution and colors to an ini file then change the resolution to a resolution you specify. On exit of the Form the program will read the ini file and change the screen resolution back to those parameters... This would be great for programmers writing games that need a specific resolution to run. thanks to Steve Anderson for his tutorial on resolution changes...
Inputs
None except Hard coded resoultion change.
Assumes
Some systems may need to be rebooted for resoulution change. It depends on the way you have your system
Code Returns
nothing
Side Effects
Sometimes the desktop icons get re-arranged. This has only happend once to me but I figure I should mention it... Oh it has happen to me when changing it through windows display properties also.
API DeclarationsIn code
Upload