Microsoft.Win32 Namespace

I'm somewhat new to C#. I've used VB6 for a long time now. I'm wanting to access the registry and i've been told I need to reference the Microsoft.Win32 namespace, but there is no such namespace on my computer. Can someone please help me

Would the Application Settings be just as useful if I use the User scope Also, how would I reference the settings in the code


-----
Wow. 129 Views and none of your idiots can help me



Answer this question

Microsoft.Win32 Namespace

  • JaredJ

    You can use either the Registry or Application Setttings to accomplish essentially the same thing.

    The registry can be accessed through Microsoft.Win32.Registry.  See the article at http://www.codeproject.com/csharp/registry1.asp#Anexamplecode for more information on how to do this.

    Alternatively, you can use the Applicaiton Settings designer (Project->Properties->Settings tab) to create persistent settings for you application.

    Thanks,
    Luke Hoban
    Visual C# IDE Program Manager


  • Mister2zx3

    Thanks for the response, finally. Unfortunately I can't remember why I needed this to begin with. O well. I should've figured a M$-ran forum wouldn't be too helpful.

    And why does the menu and toolbar controls not look or act just like the real thing in Office 2003 You click the seperator bar in a menu and the menu closes.

    I need to learn some Mac languages. Their IDE is awesome.


  • Microsoft.Win32 Namespace