Full sollution: Dim regKey As RegistryKey
Dim LicenseTo As String
Dim LicenseKey As String
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\sample\app\License", False)
If (regKey Is Nothing) Then
LicenseTo = "DEMO"
LicenseKey =...
I have the following 2 lines of code to read some value from the registry upon opening my about-form, but the registry isn't being read and the default value isn't used.
Dim LicenseTo = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\sample\app\License", "LicenseTo", "DEMO")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.