adding more than one column to a ListView

K

koosh34

I'm writing a file search function and I want to display for each matching
file found the file name and the path (in separate columns). So far I've got
a file name and path for each file found but can't work out how to write
them into seperate columns in the ListView control.
Help?
 
H

Herfried K. Wagner [MVP]

koosh34 said:
I'm writing a file search function and I want to display for each matching
file found the file name and the path (in separate columns). So far I've
got a file name and path for each file found but can't work out how to
write them into seperate columns in the ListView control.

The MSDN documentation on 'ListView.Columns' contains a code sample
demonstrating how to populate a listview control which has more than one
column.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top