Drawing a blue gradient background
By: Lorenzo Dalla Vecchia Date: 07/06/1998
File:

bluegradientbackground.zip

Size:

1.27 KB

Download now!

This procedure will start with a blue (RGB 0,0,255) rectangle with the with of the form and and with the height equal to a 255th of the form height.
So, the procedure will draw 255 rectangles, each time decreasing by 1 the B ammount.
The last rectangle will be RGB 0,0,0 (Black).

This sub is used to draw a blue gradient background as in Microsoft Setup programs.

Syntax

BlueGradientBackground (Form)

Parameters

Form: name of the form to paint

Type of data

N/A

Returns

N/A

-

The function is contained in a module. You can cut and paste it in any program of yours.

Click Here!


Visual Basic Programming Zone is a website by Lorenzo Dalla Vecchia.
Webmaster's e-mail: webmaster@vbprogzone.cjb.net
Hosted by InWind: www.inwind.it