Multi Column ListBox

rbreidenstein

Member
Joined
Dec 4, 2005
Messages
21
Programming Experience
1-3
in vs 2005 vb.net i cannot determine how-to add items to the multi column list box. i see the property in the properties of the listbox and i set it to true for multicolumn, but still no success.

any suggestions?
 
You misunderstand what that Multicolumn property means, which would suggest that you haven't read the relevant help topic. All it does is prevent the use of a horizontal scrollbar. All items are added to the first column until it reaches the bottom, at which point all subsequent items are added to the second column until it reaches the bottom, and so on. You have no control over where the items go and there is no correspondence between two items on the same row. If you want true multicolumn functionality then you need to use a DataGrid, ListView or something like this third-party, derived ListBox control. The code is in C# but you can add a reference to the compiled library to a VB.NET project.
 
Back
Top