columns in listbox
hi guys..
im only asking.. do you know that listbox can contain more than 1 column (like grid)? if you do know, please tell me the code.. coz i kinda need it.. thanks very much :D
[184 byte] By [
pungky] at [2007-11-11 6:28:59]

# 1 Re: columns in listbox
Columns in ListBoxes are created through "tab stops". See the following:
http://vbnet.mvps.org/code/listapi/cooltabs.htm
# 2 Re: columns in listbox
You might also consider using a ListView control in Report view:
http://msdn.microsoft.com/library/en-us/vbcon98/html/vbconusinglistviewcontrol.asp, or simply using a grid control. :-)
# 3 Re: columns in listbox
yeah.. finally i use a sheridan grid.. but i just wanna know whether a listbox can be divided into columns or not.. well, anyway.. thanks a lot :)
pungky at 2007-11-11 17:30:32 >

# 4 Re: columns in listbox
yes, it is possible:
http://www.freevbcode.com/ShowCode.Asp?ID=103
Marco
PS I am not very found of the Sheridan controls, they are expensive, you need to learn how to use them, and they need to be distributed with the app. And most of the times they are overkilling.
If you just need multiple columns, you can use the ListBox (with the above code), the ListView (as Phil's suggestions) or a FlexGrid
mstraf at 2007-11-11 17:31:26 >
