ListView Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chris52672
    New Member
    • Mar 2009
    • 26

    ListView Control

    Ok what I want to do is be able to search out files of type extension and populate the ListView Control.

    I know that there is a way to get directory info.

    string[] DirInfo = System.IO.Direc tory.GetLogical Drives();

    Is there something I can do with files along the same lines.

    Also I am having trouble populating the list box.

    listViewFileOut .Items.Add("hjr ",1); This only fills out one Column. How do I pupulate the other columns?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Is there something I can do with files along the same lines.
    Code:
    System.IO.Directory.GetFiles(string directory);
    This only fills out one Column. How do I pupulate the other columns?
    You don't. When column one fills up the next addition goes to column two... when that is full it rolls to column 3 and so on.

    TIP: Read through the MSDN Library about each new control you are learning.

    Read through each of its methods. You don't have to experiment with each one, but if you read through the definition of all the methods you have them stuck in the back of your head a little better.

    Comment

    Working...