CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Posts
    16

    Copy directory from hard disk to textbox

    I am creating 1 textbox and 1 button. A button is open a file contain database (.mdb) and textbox is shown the directory.
    Example : C:\ TEST.mdb
    I want to copy the directory in the first time and when I open the program in the second time the textbox is shown the directory in the first time.


    I am appreciate for your help!!!!!

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Copy directory from hard disk to textbox

    That is what the program installer is supposed to do. The only way to do it would be to check for a db file that hasn't been copied, and replace the valid one. Suppose someone copies a file there two years later? You'd lose your DB when the app started "first time" again.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Copy directory from hard disk to textbox

    Clearly you do not mean that you want to copy a directory.

    How about telling us what you want to do as your post makes no sense whatsoever
    Always use [code][/code] tags when posting code.

  4. #4
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Copy directory from hard disk to textbox

    IMO the OP wanted to say PATH instead of Directory
    and
    In button click event he :
    wants to open the mdb typed in the textbox
    wants to save the path
    and retrieve and show the path every time the program is executed
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  5. #5
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Copy directory from hard disk to textbox

    I am thinking he is looking for a complicated way of getting app.path ?
    Always use [code][/code] tags when posting code.

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

Featured