1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Files list in listbox

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

  1. RayvenHawk

    RayvenHawk New Member

    Sep 29, 2010
    Likes Received:
    Trophy Points:
    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