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.NET | Clr = object.ForeColorFocus As System.Drawing.Color |
| C++ | OLE_COLOR Clr = object->ForeColorFocus; OLE_COLOR Clr = object->GetForeColorFocus(); |
| C | HRESULT object->get_ForeColorFocus(OLE_COLOR* Clr); |
| VB | Clr = object.ForeColorFocus As OLE_COLOR |
Put
| C# | System.Drawing.Color object.ForeColorFocus = Clr; |
| VB.NET | object.ForeColorFocus = Clr As System.Drawing.Color |
| C++ | OLE_COLOR object->ForeColorFocus = Clr; void object->PutForeColorFocus(OLE_COLOR Clr); |
| C | HRESULT object->put_ForeColorFocus(OLE_COLOR Clr); |
| VB | object.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