Results 1 to 3 of 3

Thread: Reading from and writing to the registry, how?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849

    Question Reading from and writing to the registry, how?

    hello!

    I want to Read from and write to the registry in c#, how can I do that?

    And also, in WinFX (or vista, or longhorn, or whatever you call it..), will there
    be a registry?

    thanks

    Dekel C.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Reading from and writing to the registry, how?

    Use the Microsoft.Win32.Registry and .RegistryKey classes. Although Microsoft want to phase it out there is just too much existing dependency on the Registry to get rid of it altogether anytime this century.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Reading from and writing to the registry, how?

    A better option for configuration/preferences etc. is to use XML files. That way you do not run into so many permissions problems and they are easier to copy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width