How to remember the path i accessed last time and open it next time?

  • Thread starter Thread starter Steven
  • Start date Start date
S

Steven

Hello,

I have a problem in using TreeView.
I want to remember the path I have accessed. When I open the dialog
of this TreeView next time , it could be opened automatically.

Does anyone can help me?
Thanks.

bestRegards from
Steven Suen
2003/8/18
 
Steven,

This is easy. You will have to persist the path somewhere. If it is
over the course of your program, then you would store the path in a string
variable that you can access later. If you wanted to store the path it was
saved in since the last time, then you will have to store the path in
someplace where you can access it later, as in a file or in a database.

Hope this helps.
 
Back
Top