C#
  Home arrow C# arrow Working with Windows Registry in C#
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C#

Working with Windows Registry in C#
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 6
    2008-03-05

    Table of Contents:
  • Working with Windows Registry in C#
  • The Basics
  • Let's Do It!
  • More Techniques
  • Final Words

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working with Windows Registry in C#


    (Page 1 of 5 )

    The Windows registry is the place where Microsoft Windows operating systems store settings and options. During your past endeavors as a programmer, I am sure you ran into numerous situations where working with registry was either necessary or just helpful. In this article, we are going to learn how to accomplish this task in C#.

    C# is the simple, modern, general-purpose, and object-oriented programming language developed by Microsoft. Thanks to C#, working with registry is an easy task once you know the basics. First, we will present the structure of the registry in order to refresh our memories. Then we will move on to learning the strategy required to work with it.

    Therefore, you can expect to read about how to read, write, and delete specific keys (subkeys) and values. The techniques will be accompanied with appropriate code samples for the purpose of exemplification. We are going to approach this task using the Microsoft.Win32 namespace because it contains the powerful Win32_Registry WMI class (Windows Management Instrumentation - link for Wikipedia entry on WMI), which represents the Windows registry.

    I know you are already anxiously waiting to begin, so here we go now!

    More C# Articles
    More By Barzan "Tony" Antal


       · Thanks for reading this tutorial. I hope you've found it informative and education....
       · Clean, crisp to the point introductory article, keep it up.Thanks
       · I'd be interested in code clips necessary to elevate the current user to a level...
     

    C# ARTICLES

    - Coding a CRC-Generating Algorithm in C
    - Cyclic Redundancy Check
    - Handling Methods and Functions
    - Destroying Objects in C#
    - Creating Objects in C-Sharp
    - Classes and Objects
    - Programming Languages: Managed versus Native
    - LINQ-to-MySQL with DbLinq in C#
    - Working with Dates and Times in C#
    - Generics, Dictionaries, and More
    - More About Generics
    - Working with C# Collections
    - Generics
    - C# and XML
    - Pointers and Arrays in C#





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek