I am trying to make that by clicking on an object (called image) a value is added to the Windows registry, the point is that it does work, however, I need permission to add a subkey .. I explain:
Imports Microsoft.Win32
Public Class Form1
Private Sub BotonAg_Click(sender As Object, e As EventArgs) Handles BotonAg.Click
Dim h2 As RegistryKey = Registry.CurrentUser.CreateSubKey("SOFTWARE\Classes\CLSID\heey")
h2.SetValue("heey2", &H0)
h2.Close()
End Sub
End Class
That is, in "Classes" I can not create a new subkey, I do not have enough permissions. The code works perfectly, only I do not have permissions in Classes How can I take all the permissions? What do I need to add?