Form Gradient Using Only Three Lines Of Code

Category:
Screen/Graphics
Type:
Snippets
Difficulty:
Beginning
Author:
Behrooz Sangani

Version Compatibility: Visual Basic 6

More information:
You do not need to do anything or write lines of code to add gradient to your forms. Just put the following three lines in Form_Load Sub and change your 'Form.AutoRedraw' to True. Two examples are given: one for horizental and the other for vertical gradient. Find more information in the code itself...

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

Declarations:

Code: