Type | Description | |||
String | A string expression that specifies the control's caption. |
The following sample displays the control's caption as soon as user types characters in the control:
Private Sub CalcCombo1_Change() With CalcCombo1 Debug.Print .Caption End With End Sub
The Caption property supports built-in HTML format like follows:
or <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets:
The following sample displays the 'Cannot execute the operation' string:
CalcCombo1.Caption = "Cannot <b>execute</b> the operation."