Results 1 to 4 of 4

Thread: [RESOLVED] multiple files

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    17

    Resolved [RESOLVED] multiple files

    Is there a control that allows you to select multiple files? I am using the openFileDialog control to browse for files, but it only allows me to select one file at a time.
    Also, how can i get only the file name from the entire path?
    Is there a function similar to PHP's explode(); where i can use \ as a seperator and then get the last value from the returned array, that should be the file name.
    Last edited by Triumph; Nov 6th, 2005 at 12:08 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: multiple files

    *Sigh*... why won't people read? The OpenFileDialog has a Multiselect property and a FileNames property that do just what you'd expect they do. As for the other question, use the IO.Path class to manipulate file paths.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    17

    Re: multiple files

    Thanks for the help, that did it.
    Last edited by Triumph; Nov 6th, 2005 at 09:24 AM.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width