property ComboBox.WidthList([Reserved as Variant]) as Long

Specifies the width for the drop-down window.

TypeDescription
Reserved as Variant Reserved.
Long A long expression that indicates the width of the drop down window.

Use the WidthList property to specify the width of the drop down window. The WidthList property has no effect if the contol's Style is Simple. Use the HeightList property to specify the height of the drop down window. The MinWidthList property specifies a value that indicates the minimum width of the control's drop down window. Use the AllowSizeGrip property to specify whether the drop down portion of the control is resizable at runtime. Use the ColumnAutoResize property to specify whether the visible columns should fit the control's client area.

The following VB sample specifies the width of the drop down portion of the control:

ComboBox1.WidthList() = 100

The following C++ sample specifies the width of the drop down portion of the control:

COleVariant vtMissing; V_VT( &vtMissing ) = VT_ERROR;
m_combobox.SetWidthList( vtMissing, 100 );

The following VB.NET sample specifies the width of the drop down portion of the control:

AxComboBox1.set_WidthList(100)

The following C# sample specifies the width of the drop down portion of the control:

axComboBox1.set_WidthList(100);

The following VFP sample the width of the drop down portion of the control:

with thisform.ComboBox1.Object
	.WidthList("") = 100
endwith