Search Tools Links Login

Adding Gradients to VB forms


This example shows a couple of custom classes that can very easily be used to add gradients to your VB forms by painting them over standard rectangle shape objects.

You draw the shapes on the form, then in form_load you attach the shapes to the Gradients class, which over-rides the form's paint event to draw the gradient.

Supports 2 colour gradients Vertically and Horizontally.

About this post

Posted: 2019-09-09
By: sbridge
Viewed: 200 times

Categories

Visual Basic 6

Attachments

VB6_GradientDemo.zip
Posted: 9/9/2019 7:49:51 AM
Size: 5,458 bytes

Special Instructions

This code originally appeared on AndreaVB.com, and has been republished here with the permission of Andrea Tincani.


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.