Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi-column List Box 4

Status
Not open for further replies.

rickyoswald

Programmer
Jun 12, 2004
59
GB
I have been trying to make a multi-column list box which will fill with data from a database. The default listbox control in VB6 only has one column, is there property or a similar control that I can use?
 
Your right, I didn't look and should have. Again, thanks for all the help.
 
rickyoswald, it seems that you might reward a few stars here, you can reward stars to post that you deem helpful, by clicking the link Thank UserName for this valuable post! under each post.

Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
I handed out some stars to those who deserved them. I am a bit of a newbie to VB and definatly a newbie here! Sorry if I am neing a bit newbish
 
Guys,
I would like to express my humble opinion...
I know that everybody's happy here, but wasn't the original question about the good old, simple and primitive ListBox control? Why did everybody start talking about the ListView?

The ListBox control has a Columns property that may be set to a number other than 0 (the default) for the display of multiple columns. I've been using the Columns property of the ListBox for a coupole of years now and it works beautifully. I get a nice list with as many columns as I want.

Maybe there's a specific reason why people don't use the ListBox control with multiple columns. Or perhaps it was just that the control was overlooked here. In either case, I would like to know why the ListBox wasn't even mentioned... Can someone say something?

Thanks!

JC

_________________________________________________
To get the best response to a question, read faq222-2244.
 
ListView is a more powerful (and nicer looking) alternative to ListBox. I think :)
 
I agree with ricky that the ListView is definately more flexible that the std listbox. The ListView seems to take a more modern approach to programming with the use of collections... just my opinion
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top