HeaderPane
Main
Hide
Share Link
Print

BackColor Property, SftButton Object

Defines the control's background color.

Syntax

Get

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

Put

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

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