logo
vbRad Home
Source Code
Book Reviews
Forum
Links
About Us
Contribute

Compare Databases with SQL Effects Clarity
 
 How to draw gradient on the form

Posted on
2/18/2001
Author:
Robert Gelb
Email:
Not Shown
Applies To OS:
All
Product:
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

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.
Add Your Comment  

Name: Email Address: all fields optional
Notify me via email when someone responds to this message (valid email required).

Enter the word: