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

multiple column listbox - add item to a specific column ? 1

Status
Not open for further replies.

ooops

MIS
Dec 21, 2000
91
US
Hi,

This is what I currently have:

For i = 0 to lstBox1.ListCount -1
lstBox2.AddItem lstBox1.Text
next i

lstBox2 is a multiple column listbox. How do I remove all the items in lstBox1 to column(1) of lstBox2 ? Thanks a bunch for your help.
 
before you completely beat yourself to death using listbox, take a look at listview instead.
 

I tried listView like you suggested but I really have problem adding item to the listView. Suppose I have only 1 column in listView and I'd like to add a list of item just like what I did in listbox. Could you show me how. Thanks for your help.
 
if you want the listview to look exactly like a ListBox

Code:
dim lItem as ListItem
listview1.view = lvwList
set lItem = listview1.ListItems.Add(, , [your data])

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top