ForegroundColor

<< Click to Display Table of Contents >>

 

ForegroundColor

Color Specifies a Screen's foreground color. In scripts, use VBScript's RGB method to gather a color to associate to this property. The default value of this property is black (RGB(0, 0, 0)). Applications previous to the introduction of this property have this property and the BackgroundColor property set to the color stored on the BackgroundColor property, and its fill style set to the value 11 - Background, which paints the whole Screen with the background color, that is,  the old behavior, before creating styles. The next script contains an example of using this property.

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

Was this page useful?