HeaderPane
Main
Hide
Share Link
Print

ForeColor Property, SftButton Object

Defines the control's text color.

Syntax

Get

C#System.Drawing.Color Clr = object.ForeColor;
System.Drawing.Color Clr = object.CtlForeColor;
VB.NETClr = object.ForeColor As System.Drawing.Color
Clr = object.CtlForeColor As System.Drawing.Color
C++OLE_COLOR Clr = object->ForeColor;
OLE_COLOR Clr = object->GetForeColor();
CHRESULT object->get_ForeColor(OLE_COLOR* Clr);
VBClr = object.ForeColor As OLE_COLOR

Put

C#System.Drawing.Color object.ForeColor = Clr;
System.Drawing.Color object.CtlForeColor = Clr;
VB.NETobject.ForeColor = Clr As System.Drawing.Color
object.CtlForeColor = Clr As System.Drawing.Color
C++OLE_COLOR object->ForeColor = Clr;
void object->PutForeColor(OLE_COLOR Clr);
CHRESULT object->put_ForeColor(OLE_COLOR Clr);
VBobject.ForeColor = Clr As OLE_COLOR

object

A SftButton object.

Clr

Defines the control's text color. For information about color properties, please visit the applicable section "Using SftButton/OCX with ...".

Comments

The ForeColor property defines the control's text color.

If Windows themes are used, the ForeColor property has no effect, unless UseThemes is set to 2 - Yes (Exclude Text).

The defined color is used to display the text defined using the Text property. If the button is pressed, the color ForeColorPressed is used instead. If the control is disabled (see Enabled property), the foreground color defined using the ForeColorGrayed property is used instead.

The foreground color of the drop down arrow is defined using the ForeColorDownArrow property.

See Also SftButton Object | Object Hierarchy


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