property CalcCombo.Caption as String
Specifies the control's caption.

 TypeDescription 
   String A string expression that specifies the control's caption.   
Use the Caption property to access the control's caption. The Change event notifies your application when the control's caption is changed. The Caption property erases the control's operators and operation stack and replaces the control's caption. Use the Execute method to execute operations. Use the Buttons property to assign a different matrix of digits and operators to the control.

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:

The following sample displays the 'Cannot execute the operation' string:

CalcCombo1.Caption = "Cannot <b>execute</b> the operation."


Send comments on this topic.
© 1999-2007 Exontrol Inc, Software. All rights reserved.