How to create registry & delete registry using VB.Net

By James J

Show how to create registry & how to delete particular registry

> Create Registry...

Dim RegCreateKey As RegistryKey
RegCreateKey = My.Computer.Registry.CurrentUser.CreateSubKey("ApplicationName\CompanyName")

> Delete particular Registry...

Using RegDeleteKey As RegistryKey = My.Computer.Registry.LocalMachine.OpenSubKey("SoftwareName")
            
RegDeleteKey.DeleteSubKey("KeyToDelete")
End Using

How to create registry & delete registry using VB.Net  (1361 Views)