Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. newbie wants to browse for files/folders

newbie wants to browse for files/folders

Scheduled Pinned Locked Moved Visual Basic
csharpc++question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gerry D
    wrote on last edited by
    #1

    I have seen C++ and C# examples but they are way to complex for this newcomer to vb.net. Does anybody have a sample project that I could learn from? TIA Gerry :confused:

    G 2 Replies Last reply
    0
    • G Gerry D

      I have seen C++ and C# examples but they are way to complex for this newcomer to vb.net. Does anybody have a sample project that I could learn from? TIA Gerry :confused:

      G Offline
      G Offline
      Gerry D
      wrote on last edited by
      #2

      I guess I should clarify that I can place the OpenFileDialog on the form, but my problem is first how to make it come up when I click on e button, and secondly I need to have multiple files selected go into an array. Thanks. Gerry

      1 Reply Last reply
      0
      • G Gerry D

        I have seen C++ and C# examples but they are way to complex for this newcomer to vb.net. Does anybody have a sample project that I could learn from? TIA Gerry :confused:

        G Offline
        G Offline
        Gerry D
        wrote on last edited by
        #3

        OK, so I have found OpenFileDialog() and .ShowDialog() and I can copy the results to a listbox for display. Now the next question is "how do I find the directory name where the files were selected from?" I prefer not to parse it from one of the listbox entries. Thanks, Gerry :)

        R 1 Reply Last reply
        0
        • G Gerry D

          OK, so I have found OpenFileDialog() and .ShowDialog() and I can copy the results to a listbox for display. Now the next question is "how do I find the directory name where the files were selected from?" I prefer not to parse it from one of the listbox entries. Thanks, Gerry :)

          R Offline
          R Offline
          Ray Cassick
          wrote on last edited by
          #4

          If all you want to do is browse for a folder, try this: http://www.codeguru.com/vb/articles/1864.shtml[^]


          Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
          George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."


          G 1 Reply Last reply
          0
          • R Ray Cassick

            If all you want to do is browse for a folder, try this: http://www.codeguru.com/vb/articles/1864.shtml[^]


            Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
            George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."


            G Offline
            G Offline
            Gerry D
            wrote on last edited by
            #5

            See my replies (with more info) to myself. I have discovered over the last few days how to browse to the folder, select files, copy them to a listbox, and then process the files from the listbox. When I have time this weekend, I will post the project on http://files.danen.org/h/prg\_vbnet.shtml for everyone's benefit. Thanks for your response. :-) Gerry

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups