Hexadecimal Color Values

Colors in ScriptDialogs dialog boxes can be set using color names or hexadecimal values.

Hexadecimal values should use the format #RRGGBB, where RR is the red component of the color, GG is the green component of the color, and BB is the blue component of the color.

Red, green, and blue components can be any hexadecimal value from 00 to FF.

Examples
#FF0000 -- red
#00FF00 -- green
#0000FF -- blue
#CBCBCB -- medium gray
#FFFFFF -- white
#000000 -- black
#FFFF00 -- yellow

Sub main
  Set Dialog = CreateObject("TPFSoftware.ScriptDialog")


 ' Set the dialog background to a medium gray  Dialog.BGColor = "#CBCBCB"
 Set Result = Dialog.Execute End Sub