Link to home
Start Free TrialLog in
Avatar of keschuster
keschuster

asked on

Get the value from registry using VB.net

When i try to get the value from Current_user registry settings the below code is fine on my window7 machine.

regKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\PTS Tools", True)-OK

But if i use same code for LOCAL_MACHINE it is not working and  it is giving error that SecurityException was un handled

regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\PTS Tools", True)-Not OK


Can you please provide the solution to read LOCAL_MACHINE registries using VB.Net
ASKER CERTIFIED SOLUTION
Avatar of Anuradha Goli
Anuradha Goli
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of keschuster
keschuster

ASKER

I found my solution from below link

http://dirk.schuermans.me/?p=104