Element.ForeColor



ForeColor() As OLE_COLOR
ED
avaliable
RT
read only

Remarks

Returns/sets the foreground colour of the dynamic element.

Hint: After changing the foreground colour the method "Update" should be executed to redraw the element.

In VB(A) ColorConstants can be used to set the foreground colour.

The constants are listed below:

Constants Code Code Hex
VbBlack
0
&H0
VbBlue
16711680
&HFF0000
VbCyan
16776960
&HFFFF00
VbGreen
65280
&HFF00
VbMagenta
16711935
&HFF00FF
VbRed
255
&HFF
VbWhite
16777215
&HFFFFFF
VbYellow
65535
&HFFFF

See Also

Element