Add a Gradient Background to a TreeView Control

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Advanced
Author:
Arkadiy Olovyannikov

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
This .bas module allows you to add a gradient background color to a TreeView control. Included in the package is a sample form that demonstrates usage of the module.

NOTE: This sample should work in VB5 or VB6. However, the sample form uses a VB6 TreeView control which is not backwards compatible with VB5. Thus, if you have VB5, you should open the .frm file in a text editor and copy and paste it into a VB project that has a form with a treeview control on it. Then, you can add the .bas module to your project.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download treeviewgradient.zip