Results 1 to 3 of 3

Thread: vb.net FolderBrowserDialog: last directory visited need to be stored

  1. #1
    Join Date
    Jan 2009
    Posts
    44

    vb.net FolderBrowserDialog: last directory visited need to be stored

    Hi,
    Well here is my problem with VB.net application.
    The SaveFileDialog remembers what directory a user last saved to, and
    the next time it is displayed, it remembers this. FolderBrowserDialog has SelectedPath property for setting the initial directory, but it doesn't remember the last directory selected.
    Its ok if i run the program once but if I close & rum program it wont remember this lastdirectory in folderborwserdialog & goes to the default selections.
    How to store this for an application?

  2. #2
    Join Date
    Aug 2008
    Posts
    40

    Re: vb.net FolderBrowserDialog: last directory visited need to be stored

    Well its your application then you have to decide where to save this since its application specific query.

    You need to code for this.

  3. #3
    Join Date
    Jan 2008
    Posts
    56

    Re: vb.net FolderBrowserDialog: last directory visited need to be stored

    If so you may want to check out the settings. Its a nice way to store such information.
    Create a setting as a text field. Then when the box is checked or the dialog box is Ok'd use:

    Code:
    My.Settings.nameofsettinghere = TextBox1.Text
    My.Settings.Save()
    the settings are accessible just like any variable, and can range from text, to colors, to fonts, to arrays.

    saving the settings is important to make sure that the information is stored for later use.

    Once you have established a setting, then simply access it when the form opens!

Similar Threads

  1. Why my ISO files are not stored in the root directory ?
    By Dimensioner in forum Windows Software
    Replies: 3
    Last Post: 25-02-2011, 09:06 AM
  2. Using stored procedures and stored functions in MySQL
    By Adiran in forum Software Development
    Replies: 6
    Last Post: 14-12-2010, 01:54 AM
  3. How to detect the number of files stored in Linux directory
    By Shanbaag in forum Operating Systems
    Replies: 2
    Last Post: 26-06-2009, 12:49 PM
  4. Does ISP view my visited websites
    By Fantastic Zero in forum Technology & Internet
    Replies: 3
    Last Post: 20-06-2009, 08:20 PM
  5. How to keep a track of website visited
    By Patrickboy in forum Technology & Internet
    Replies: 3
    Last Post: 22-05-2009, 10:16 AM

Tags for this Thread

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
  •  
Page generated in 1,714,254,609.15132 seconds with 17 queries