?
Solved

Get the value from registry using VB.net

Posted on 2012-09-06
2
Medium Priority
?
577 Views
Last Modified: 2012-09-06
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
0
Comment
Question by:keschuster
2 Comments
 
LVL 12

Accepted Solution

by:
Anuradha Goli earned 1500 total points
ID: 38371770
0
 

Author Closing Comment

by:keschuster
ID: 38372346
I found my solution from below link

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

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question