Set it in code as you did or set at design in the columnwidths property for the listbox1 control.