March 5, 2021
Hot Topics:

Screen Resolutions

  • By Steve Anderson
  • Send Email »
  • More Articles »

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.

Click here for a larger image.

The Display Settings Control Panel

Page 1 of 6

This article was originally published on November 20, 2002

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date