Results 1 to 4 of 4

Thread: open browser to get string name of a file

  1. #1
    samlochner is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2012
    Posts
    2
    Reputation
    0

    open browser to get string name of a file

    Hi, is there a function to open a file selection browsing tree? I need it to return the string of the name of the file selected by the user.

    Thanks,
    Sam

  2. #2
    Menthos is offline VB.NET Forum Master
    .NET Framework
    .NET 3.5
    Join Date
    Jul 2006
    Posts
    272
    Reputation
    171
    You mean something like the openFileDialog?
    A friend will help you move. A real friend will help you move a body.

  3. #3
    samlochner is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2012
    Posts
    2
    Reputation
    0
    I'm not sure. Basically, when the function runs, a tree browser should appear. The user then navigates to a text file and picks it. The string should be returned. Does openfiledialog do that? Can you show me an example?

    Thanks,
    Sam

  4. #4
    Menthos is offline VB.NET Forum Master
    .NET Framework
    .NET 3.5
    Join Date
    Jul 2006
    Posts
    272
    Reputation
    171
    There's an example at the bottom of the MSDN link I posted - pretty easy to implement.
    A friend will help you move. A real friend will help you move a body.

Bookmarks

Posting Permissions

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