It can often be useful to be able to retrieve or change the screen resolution direct from your VB application. For example, if you have written a game in VB, you may wish to set the screen resolution to 600x480. Desktop Publishing software would also benefit from being able to offer the user a one-click function to change the screen size.
You could even design a dynamic application that resizes all the controls on the form based on the current screen resolution.
This article will take you through some of the more important display setting functions that will prove valuable to the Visual Basic programmer.
Normally manipulating and displaying information on the display settings this would be done with the aid of the Display Properties applet in the control panel, but this article will teach you how to do the same programmatically using the Windows API.
Page 1 of 6