|
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:
- StartColor - defines the beginning color of the gradient
- EndColor - defines the end color of the gradient
- Orientation - defines what direction the gradient will be drawn (either Horizontal or Vertical)
Click here to download
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.