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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populating multi column list boxes in VB

Status
Not open for further replies.

afryer

Programmer
Mar 9, 2004
207
GB
Hi All,

This is going to sound like a really stupid question, but I can't find the answer on here or on the Microsoft site...

Basically I have a multi-column list box, which needs to be populated from a file read in a loop. I can populate the first column fine, but how do I populate the other columns?

Cheers

Andrew
 
We probably need to know whose multi-column listbox you are using. Could be VB6 using tabs, could be VBA, could be proprietory

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Hi,

It is just the standard windows list box (ListBox) in Visual Basic, which I think is in Microsoft Common Controls.

Cheers.
 
Oddly, a search of this forum turned up thread222-877693
 
The standard VB listbox does not have multicolumns - it can be set for a single vertically scrolling column (.columns=0), or a single horizontally scrolling snaking column (.columns = anything other than 0)

You cn use the API to set tabstops to fake multicolumns, or you can use an alternative control such as the Listview (as recommended in the thread that bjd4jc references)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top