SETHA SITE INFORMATION

  • Increase font size
  • Default font size
  • Decrease font size

How to change screen resolution using Visual Basic 6?

E-mail Print PDF

This sample show you how to write Visual Basic 6 (VB6) code to change screen resolution (example: change screen resolution to 1024x768). You will see the uses of API function as follow:

Public Declare Function GetSystemMetrics Lib "user32.dll" .................
Public Declare Function EnumDisplaySettings Lib "user32.dll" ................
Public Declare Function ChangeDisplaySettings Lib "user32.dll" ............
Public Declare Function ExitWindowsEx Lib "user32.dll" .........

Download Sample Here