Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 31-01-2009
Member
 
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?
Reply With Quote
  #2  
Old 31-01-2009
Member
 
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.
Reply With Quote
  #3  
Old 31-01-2009
Member
 
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!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 01:55 AM.