windows registry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dipalichavan82
    New Member
    • Feb 2008
    • 41

    windows registry

    how to create multiple key-value pairs in a folder.
    that is i wan structure like dis:
    local machine:
    software
    dataManage
    emp : dipa
    id :23
    add : mum
    i created subkey dataManage on software. how to proceed. plz help
  • jjvainav
    New Member
    • Feb 2008
    • 25

    #2
    The following should open your dataManage folder and add the key-value pairs.

    Code:
    RegistryKey local = Registry.LocalMachine;
    local = local.OpenSubKey("SOFTWARE\\dataManage", true);
    local.SetValue("emp", "dipa");
    local.SetValue("id", 23);
    local.SetValue("add", "mum");
    Originally posted by dipalichavan82
    how to create multiple key-value pairs in a folder.
    that is i wan structure like dis:
    local machine:
    software
    dataManage
    emp : dipa
    id :23
    add : mum
    i created subkey dataManage on software. how to proceed. plz help

    Comment

    • dipalichavan82
      New Member
      • Feb 2008
      • 41

      #3
      Originally posted by jjvainav
      The following should open your dataManage folder and add the key-value pairs.

      Code:
      RegistryKey local = Registry.LocalMachine;
      local = local.OpenSubKey("SOFTWARE\\dataManage", true);
      local.SetValue("emp", "dipa");
      local.SetValue("id", 23);
      local.SetValue("add", "mum");


      thnx for helping out

      Comment

      Working...