Convert VBColor to Hexadecimal Format

Category:
Screen/Graphics
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
Demos:
MsgBox ConvertColors(CStr(vbRed), True)
MsgBox ConvertColors(CStr(vbBlue))

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

Declarations:

Code: