Files list in listbox

Discussion in 'C#' started by RayvenHawk, Sep 29, 2010.

  1. RayvenHawk

    RayvenHawk New Member

    Joined:
    Sep 29, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I'm creating a compression program for one of my classes and I'm getting stumped on one aspect of it which is more cosmetic than anything but I'm going for gold here I suppose.

    Anyway I have a windows form that has a textbox with a button that executes FolderBrowserDiaglog (which works fine) and then places the directory you select into the textbox field (also works).

    Once thats done it sets the current directory to the one you selected (also works).

    Now where I'm stumped for some reason is I have a listbox at the bottom that I want to now fill up with all the files within the folder I selected. I'm trying to use OpenFileDialog but it opens a window for me to select a file (I want that to be done within the listbox).

    Any ideas or suggestions really??
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice