Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    1

    Angry Unanswered: Telling VB what to save and where to open files

    Hi. This is my first post, and I am somewhat new to VB, but still know a lot. However, when I call an Open File dialog box, it won't open where I wnat it to, and when I open the Save As dialog box, it doesn't save what I want it to. How can I tell VB to save or open to where I want. Thanks.


    A_Wesker

  2. #2
    Join Date
    Jan 2004
    Posts
    184

    Re: Telling VB what to save and where to open files

    Use the InitDir Property

    Returns or sets the initial file directory.

    Syntax

    object.InitDir [= string]

    This property is used to specify the initial directory for an Open or Save As dialog. If this property isn't specified, the current directory is used.

    But keep in mind the dialog box retreives the path and filename ONLY, the actual opening or saving of the file is done by you seperatly.

    Try this control on download.com, it has made my life easier for my database applications

    http://download.com.com/3000-2404-10...ml?tag=lst-0-1

    Originally posted by A_Wesker
    Hi. This is my first post, and I am somewhat new to VB, but still know a lot. However, when I call an Open File dialog box, it won't open where I wnat it to, and when I open the Save As dialog box, it doesn't save what I want it to. How can I tell VB to save or open to where I want. Thanks.


    A_Wesker

Posting Permissions

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