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. Browse

Browse

Scheduled Pinned Locked Moved Visual Basic
helpquestion
4 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.
  • U Offline
    U Offline
    united18
    wrote on last edited by
    #1

    Hi, I am developing an application in which i have to create a browse button and a list box. as soon as the user clicks on the browse button, he gets an option to choose a directory from the hard disk. As soon as he chooses a folder, the contents of the folder are displayed in the list box. Can someone help me on this? Thanks :-O

    S 1 Reply Last reply
    0
    • U united18

      Hi, I am developing an application in which i have to create a browse button and a list box. as soon as the user clicks on the browse button, he gets an option to choose a directory from the hard disk. As soon as he chooses a folder, the contents of the folder are displayed in the list box. Can someone help me on this? Thanks :-O

      S Offline
      S Offline
      Steve Pullan
      wrote on last edited by
      #2

      united18 wrote:

      Can someone help me on this?

      Post editted because I misunderstood your question... You can use the folderBrowserDialog or openFileDialog object. Just drag an instance of this onto your form. Change the Browse button's Click() event to show one of the above objects and use that object's properties and methods to determine the user's selection. There is more comprehensive help contained in the Visual Studio help files. There are some sample programs on MSDN?. ...Steve "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once :-) -- modified at 20:12 Tuesday 28th February, 2006

      U 1 Reply Last reply
      0
      • S Steve Pullan

        united18 wrote:

        Can someone help me on this?

        Post editted because I misunderstood your question... You can use the folderBrowserDialog or openFileDialog object. Just drag an instance of this onto your form. Change the Browse button's Click() event to show one of the above objects and use that object's properties and methods to determine the user's selection. There is more comprehensive help contained in the Visual Studio help files. There are some sample programs on MSDN?. ...Steve "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once :-) -- modified at 20:12 Tuesday 28th February, 2006

        U Offline
        U Offline
        united18
        wrote on last edited by
        #3

        Thanks Steve. :-O

        S 1 Reply Last reply
        0
        • U united18

          Thanks Steve. :-O

          S Offline
          S Offline
          Steve Pullan
          wrote on last edited by
          #4

          The openFileDialog object may be a better fit for your application. Again, sorry I misunderstood your question. I have updated my earlier response to reflect this. ...Steve "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once :-)

          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