ForegroundColor

<< Click to Display Table of Contents >>

 

ForegroundColor

Color Specifies Screen's foreground color. In scripts, use VBScript's RGB method to gather a color to associate to this property. Default value of this property is black (RGB(0, 0, 0)). Applications previous to the introduction of this property have both ForegroundColor and BackgroundColor properties set to the color stored on the BackgroundColor property, and its fill style set to 11 - Background, which paints the whole Screen with the background color (old behavior, before creating styles). Example:

Sub Screen1_Click()
  ' Changes foreground color to blue
  ForegroundColor = RGB(0, 0, 255)
End Sub

Was this page useful?