How to draw gradient on the form

Applies To

OS:
VB:
NT, 9x, 2000
5, 6

Provided for download is a control that draws gradient on the form. The CONTROL IS SO SIMPLE, IT IS CRIMINAL. You drop it on the form and click the Run button. That's it. It is that simple. The control handles all the redrawing issues as you resize the form.

The control has the following properties:

Click here to download

Gradient in action

Note: due to some redrawing issues in VB, your application will run faster and the gradient redraw (while resizing the form) will be smoother if you set the AutoRedraw property of your form to True.