The height, in pixels, of the items in the drop-down list of the specified combo box. The property is not accessible in the Object Inspector.
object.ItemHeight
| Part | Attribute | Type | Description |
|---|---|---|---|
object |
Required | The object always implements the
ISComboBox interface |
int
Display some information about the specified combo box, including the height of its items in the drop-down list.
Dim aComboBox
Dim aComboBoxInfo
Set aComboBox = Form.Controls_("cmbInform")
aComboBoxInfo =_
"Caption: " & aComboBox.Caption & vbNewLine &_
"ShortName: " & aComboBox.ShortName & vbNewLine &_
"ComboBox Items Count = " & aComboBox.Items.Count & vbNewLine &_
"ComboBox Item Height = " & aComboBox.ItemHeight
Profile.MsgBox(aComboBoxInfo)