This property is True if the width of the specified combo box should be calculated automatically. It is not accessible in the Object Inspector.
object.AutoSize
| Part | Attribute | Type | Description |
|---|---|---|---|
object |
Required | The object always implements the
ISComboBox interface |
bool
Display AutoSize for the specified combo box.
Dim aControl
Dim aControlInfo
Set aControl = Form.Controls_("cmbInform")
aControlInfo =_
"Caption: " & aControl.Caption & vbNewLine &_
"TypeName: " & aControl.TypeName & vbNewLine &_
"Width: " & aControl.Width & vbNewLine &_
"Auto Size: " & aControl.AutoSize
Profile.MsgBox(aControlInfo)