HeaderPane
Main
Hide

SftButton/OCX 4.0 - ActiveX Button Control

Share Link
Print

BackColor Property, SftButton Object

Defines the control's background color.

Syntax

Get

VB.NETClr = object.BackColor As System.Drawing.Color
Clr = object.CtlBackColor As System.Drawing.Color
VBClr = object.BackColor As OLE_COLOR
C#.NETSystem.Drawing.Color Clr = object.BackColor;
System.Drawing.Color Clr = object.CtlBackColor;
VC++OLE_COLOR Clr = object->BackColor;
OLE_COLOR Clr = object->GetBackColor();
CHRESULT object->get_BackColor(OLE_COLOR* Clr);

Put

VB.NETobject.BackColor = Clr As System.Drawing.Color
object.CtlBackColor = Clr As System.Drawing.Color
VBobject.BackColor = Clr As OLE_COLOR
C#.NETSystem.Drawing.Color object.BackColor = Clr;
System.Drawing.Color object.CtlBackColor = Clr;
VC++OLE_COLOR object->BackColor = Clr;
void object->PutBackColor(OLE_COLOR Clr);
CHRESULT object->put_BackColor(OLE_COLOR Clr);

object

A SftButton object.

Clr

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

Comments

The BackColor property defines the control's background color.

This property has no effect if Windows themes are used.

The defined color is used for the entire control. If the button control has the input focus, the BackColorFocus color is used instead. If the button or drop down button is pressed, the BackColorPressed color is used instead for the pressed portion. If the mouse hovers over the control, the color defined using BackColorHover is used.

If both BackColorStart and BackColorEnd define valid starting and ending colors, these take precedence and the BackColor property has no effect.

See Also SftButton Object | Object Hierarchy


Last Updated 08/23/2026 - (email)
© 2026 Softel vdm, Inc.