By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,223 Members | 1,403 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,223 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Steven" <li****@newtouch.com.cn> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.