Change the colors and fonts of the form and its controls to the windows default values.

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Intermediate
Author:
Dan McLeran

Version Compatibility: Visual Basic 6

More information:
Use this code during form load to set the application's form's colors and fonts to the user's Windows specified values.

Note: This snippets makes reference to the Microsoft flex grid control. If you want to use the code as written, you must add a reference to this component in your project. Or, you can modify the code to remove the reference to the Flex Grid.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: