store for I have data in some application registry strongly go in Windows XP, it works great , but after upgrading to Windows 7, I found that it is failing, basically saying the permissions are insufficient.
If I disable UAC it works fine, but I do not want that. Try RegKey as RegKey to RegKey = Registry.LocalMachine.OpenSubKey ( "Software \ TagLookup", true) if RegKey is nothing regKey = Registry.LocalMachine.OpenSubKey ( "Software", True) RegKey.CreateSubKey ( "TagLookup") regKey.Close () or PrinterDeviceName = regKey.GetValue ( "PrinterName") regKey.Close () end If Exception MsgBox (ex.ToString, MsgBoxStyle.Exclamation) Try as hold pre
you should be written on HKEY_CURRENT_USER, not HKEY_LOCAL_MACHINE.
Comments
Post a Comment