-
Notifications
You must be signed in to change notification settings - Fork 3
Color properties
Samuel Gomes edited this page Feb 12, 2024
·
2 revisions
The color properties hold _UNSIGNED LONG values representing the_RGB32 color that will be used to print a control's caption or text. You can also pass color values using hexadecimal values (using the prefix &H) directly.
Control(ControlID).ForeColor = _RGB32(Red%, Green%, Blue%)
Control(ControlID).BackColor = _RGB32(Red%, Green%, Blue%)
The SelectedForeColor and SelectedBackColor properties refer to selected items in lists and menus.
Control(ControlID).SelectedForeColor = _RGB32(Red%, Green%, Blue%)
Control(ControlID).SelectedBackColor = _RGB32(Red%, Green%, Blue%)
Some controls can have a border around them, and you change its color using the BorderColor property:
Control(ControlID).BorderColor = _RGB32(Red%, Green%, Blue%)