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

Saving file Path in Registry

P: n/a
Hello...I currently have a OpenFileDialog object that I will use to get the path of an Access Database. I would like to save the path of the database (ie c:\MyDatabase.mdb) to the registry so that I can use this in my application. I would also like to know how to retreive this registry entry so that it can be used by a few of my classes. Any help or resources that you can point me to for this task will be greatly appreciated! thanks
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Ed P." <an*******@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
Hello...I currently have a OpenFileDialog object that I will use to get

the path of an Access Database. I would like to save the path of the
database (ie c:\MyDatabase.mdb) to the registry so that I can use this in my
application. I would also like to know how to retreive this registry entry
so that it can be used by a few of my classes. Any help or resources that
you can point me to for this task will be greatly appreciated! thanks

Look up the Registry, and RegistryKey classes in the index. Should have all
you need to know there.

HTH
Eric
Nov 15 '05 #2

P: n/a
Ed P. wrote:
Hello...I currently have a OpenFileDialog object that I will use to get the path of an Access Database. I would like to save the path of the database (ie c:\MyDatabase.mdb) to the registry so that I can use this in my application. I would also like to know how to retreive this registry entry so that it can be used by a few of my classes. Any help or resources that you can point me to for this task will be greatly appreciated! thanks


Look at the System.Win32.RegistryKey class in the framework docs.

--
mikeb
Nov 15 '05 #3

P: n/a
Thanks for the input I'll look into what both of you mentioned! :)
Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.