Link to home
Start Free TrialLog in
Avatar of pyromatt
pyromatt

asked on

Listbox type thing

I need a control similar to Listbox but with colomns as well as rows (like on Kazaa, RegEdit or Explorers 'Details' view.) I've seen it done in VB before but ive forgotton how!

Matt.
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pyromatt
pyromatt

ASKER

Thanks :)
Just another thing, how do i add items to this? I've set up all my columns and stuff, now i need to add items to it.

Dim vItem As ListItem
Set vItem = ListView1.ListItems.Add(, , "Text to add to column1")
    vItem.SubItems(1) = "Add to column2"
    vItem.SubItems(2) = "Add to column3"
Thanks for the help :)
when i use that code tho, it places "Text to add to column1" in column 1 then i get a Type Mismatch error (13) immediatly after and it highlights the Set vItem = ListView1.ListItems.Add(, , "Text to add to column1") line.
hmm, any ideas?
 
Did you right click the ListView and insert Columns via the Column Headers Tab?Also you might want to right click the listview and set the View property to #3- lvwReport.
yup, i did all that.
ive started a new question for this so i can give points for it :)
 
https://www.experts-exchange.com/questions/20787599/Using-ListView.html