troubleshooting Question

ListView control - populating 2nd column

Avatar of SweatCoder
SweatCoderFlag for United States of America asked on
Visual Basic Classic
8 Comments1 Solution305 ViewsLast Modified:
I created a ListView control inside a VB6 ActiveX Control project. I right-clicked on the control and it brought up a property sheet. I clicked on the Column Headers tab and added a 2nd column (1 column is already there by default).

But now I cannot figure out how to populate that 2nd column with data. It should be easy. I tried the 2 ways below, but neither worked:

ListView1.ListItems(1).Add 1, , FileSize & "K"
ListView1(1).ListItems.Add 1, , FileSize & "K"

Help.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros