How to read and write registry value in Vb.Net

By James J

Code for read registry value & write registry value

> Code for read registry value...

Dim RegReadKeyValue As Object
        RegReadKeyValue = My.
Computer.Registry.GetValue("HKEY_CURRENT_USER\SoftwareName\CompanyName\KeyName", "ValueName", "DefaultValue")

> Code for write registry value...

My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\CompanyName\KeyName", "Name", "Value")

How to read and write registry value in Vb.Net  (1399 Views)