Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    74
    Points
    138
         User Info     Contact     Gamer ID
    Join Date
    Nov 2010
    Posts
    74
    Points
    138

    Default Reading and Writing Registry Keys

    Starting to port most of my code over from my VB projects and figured some people might find some of this useful.
    These aren't guides and I'm not really going to explain anything (The vb versions do that and I will link those here)
    Source code is included in a link below.

    Code:
    using Microsoft.Win32;
            private void btn_read_Click(object sender, EventArgs e)
            {
    
                string InstallPath = (string)Registry.GetValue(@"HKEY_CURRENT_USER\Software\Skype\Phone", "SkypePath", null);
               lbl_Key.Text  = InstallPath;
            }
    
            private void btn_write_Click(object sender, EventArgs e)
            {
                Registry.SetValue(@"HKEY_CURRENT_USER\Software\Skype\Phone", "SkypePath", "Test");
    
    
            }
    Source Code

    VB.NET Version

    0 Not allowed! Not allowed!
    Last edited by 1UP; 09-05-2013 at 09:15 AM.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 01:18 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.