Convert a hex color string to an rgb color

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
If you want to use HTML HEX colors in your program, use this... The following line is an example of how to use the function me.forecolor = HEXCOL2RGB("#00FF1F")

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: