HeaderPane
Main
Hide
Share Link
Print

ForeColorFocus Property, SftMask Object

Defines the control's default text color when it has the input focus.

Syntax

Get

C#System.Drawing.Color Clr = object.ForeColorFocus;
VB.NETClr = object.ForeColorFocus As System.Drawing.Color
C++OLE_COLOR Clr = object->ForeColorFocus;
OLE_COLOR Clr = object->GetForeColorFocus();
CHRESULT object->get_ForeColorFocus(OLE_COLOR* Clr);
VBClr = object.ForeColorFocus As OLE_COLOR

Put

C#System.Drawing.Color object.ForeColorFocus = Clr;
VB.NETobject.ForeColorFocus = Clr As System.Drawing.Color
C++OLE_COLOR object->ForeColorFocus = Clr;
void object->PutForeColorFocus(OLE_COLOR Clr);
CHRESULT object->put_ForeColorFocus(OLE_COLOR Clr);
VBobject.ForeColorFocus = Clr As OLE_COLOR

object

A SftMask object.

Clr

Defines the control's default text color when it has the input focus.

Comments

The ForeColorFocus property defines the control's default text color when it has the input focus.

If the control does not have the input focus or if no color has been defined for the ForeColorFocus property, the ForeColor property defines the control's default foreground color.

Text that is selected uses the SelectForeColorFocus property instead. The caption's foreground color is defined using the Caption.ForeColor property.

See Also SftMask Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.