Results 1 to 4 of 4

Thread: display file path into a textbox from file open dialog

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    12

    display file path into a textbox from file open dialog

    i have inserted a file open dialog box into my program.
    may i know how can i display the full path of my chosen file into a textbox?

  2. #2
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: display file path into a textbox from file open dialog

    post the code you have so far
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

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

    Re: display file path into a textbox from file open dialog

    How do you normally display text in a TextBox? If you don't know then the MSDN documentation can tell you. How do you get the selected file path from an OpenFileDialog? If you don't know then the MSDN documentation can tell you. You then just put the two together in a single line of code. You can access the MSDN documentation via the Help menu in the IDE and it should always be the first place you look for help. You already know exactly which classes to look up and I know that this problem requires only the use of one member of each, so the answer is easy to find.
    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

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

    Re: display file path into a textbox from file open dialog

    Please don't ask the same question more than once.

    http://www.vbforums.com/showthread.php?t=531248
    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