Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Adding value to registry...

Adding value to registry...

Scheduled Pinned Locked Moved C#
windows-adminquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amirjalaly
    wrote on last edited by
    #1

    how can I adda a value to registry keys and modify taht value(I know Microsoft.Win32.registrykey has some functions but i can not find any method for adding value)

    C B A 3 Replies Last reply
    0
    • A Amirjalaly

      how can I adda a value to registry keys and modify taht value(I know Microsoft.Win32.registrykey has some functions but i can not find any method for adding value)

      C Offline
      C Offline
      Corinna John
      wrote on last edited by
      #2

      Microsoft.Win32.Registry.CurrentUser.CreateSubKey(name); CreateSubKey opens an existing subkey, or creates it.

      A 1 Reply Last reply
      0
      • A Amirjalaly

        how can I adda a value to registry keys and modify taht value(I know Microsoft.Win32.registrykey has some functions but i can not find any method for adding value)

        B Offline
        B Offline
        Braulio Dez
        wrote on last edited by
        #3

        Hi, You can find a nice article about C# and the registry here in Codeprojec,t I think Nish was the one who wrote it. HTH Braulio

        1 Reply Last reply
        0
        • C Corinna John

          Microsoft.Win32.Registry.CurrentUser.CreateSubKey(name); CreateSubKey opens an existing subkey, or creates it.

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          this method create a new subkey not a value

          C 1 Reply Last reply
          0
          • A Anonymous

            this method create a new subkey not a value

            C Offline
            C Offline
            Corinna John
            wrote on last edited by
            #5

            Sorry, I thougt he meant adding keys. For setting or creating values there is SetValue - doesn't it create the value, if it's not there?

            1 Reply Last reply
            0
            • A Amirjalaly

              how can I adda a value to registry keys and modify taht value(I know Microsoft.Win32.registrykey has some functions but i can not find any method for adding value)

              A Offline
              A Offline
              Alvaro Mendez
              wrote on last edited by
              #6

              This[^] may be overkill, but I recommend you check it out. Regards, Alvaro


              Can I ask you a question?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups