Results 1 to 4 of 4

Thread: Initial Directory

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2004
    Posts
    24

    Initial Directory

    hey

    Anyone knows how to set the initial directory to desktop or mydocuments in a save file dialog box?

    Like this

    Code:
    
    MySaveDialog.InitialDirectory = something.Desktop;

    thanks

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Use SpecialFolder Enum .
    PHP Code:
    MySaveDialog.InitialDirectory System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop); 

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2004
    Posts
    24
    Big thanks PIRATE!!!! You really rule!!!


    One correction though

    Code:
    System.Environment.SpecialFolder.DesktopDirectory

    Again thanks!!!!

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    You're welcome . I just knew the difference between the two members .

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