HeaderPane
Main
Hide

SftButton/OCX 4.0 - ActiveX Button Control

Share Link
Print

ForeColor Property, SftButton Object

Defines the control's text color.

Syntax

Get

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

Put

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

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 08/23/2026 - (email)
© 2026 Softel vdm, Inc.