Compartir a través de


ColumnWidths Property

Specifies the width of columns for a ComboBox or ListBox control. Available at design time and run time.

Control.ColumnWidths[ = "cCol1Width, cCol2Width, ... cColnWidth"]

Property Values

  • "cCol1Width, cCol2Width, ...cColnWidth"
    Specifies the width of a column or series of columns in the ComboBox or ListBox. For example, cColumnWidths = "5, 7, 9" specifies that the first column is 5 units wide, the second column is 7 units wide, and the third column is 9 units wide, in the unit of measurement specified by the ScaleMode property of the form. Use commas to separate each width number. You can specify the number of columns with the ColumnCount property.

See Also

ColumnCount Property | ScaleMode Property | Width Property | ColumnLines Property

Applies To: ComboBox Control | ListBox Control