Smooth color gradients using only VB6 (NO images)

This program demonstrates how to create a smooth color gradient between any two colors on any size of form. While gradients are often used for visual effects, perhaps the most useful aspect of this project is the gradient algorithm itself. Many other algorithms (like image resampling) use variations of the gradient algorithm – so learn it well! :)

Similar Posts:

 

DISCLAIMER: These download files are regularly scanned to ensure they remain free from malicious content. Unfortunately, some virus scanners will flag these .zip files as suspicious simply because they contain source code and/or executable files. I have submitted my projects to a number of companies in an attempt to rectify these false-positives. Some have been cooperative. Others have not. If your virus scanner alerts you regarding these files, please allow the file to be submitted for further analysis (if your program allows for that). This should help ensure that any false-positive warnings gradually disappear for all users.

This site - and its many free downloads - are 100% funded by donations. Please consider a small contribution to fund server costs and to help me support my family. Even $1.00 helps. Thank you!

3 thoughts on “Smooth color gradients using only VB6 (NO images)”

  1. i downloaded your source code its working, but the same function am using in another project gradient is not coming.
    Is any reference is required

    1. Hi Kalaivanan,

      There are two settings you must check:

      1) Make sure that the form (or picture box) has its .ScaleMode property set to “3 – Pixel”

      2) Make sure that the form (or picture box) has its .AutoRedraw property set to “True”

      Those two settings are required for all VB code on this site.

Leave a Reply