Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Opening a Registry and deleting a key in it

Posted on 2000-05-08
2
Medium Priority
?
166 Views
Last Modified: 2010-05-02
From VB, How do I open a Registry and simultaneously delete a windows key in that. Is there any API or Function which I can use(Like Shell command to Prompt DOS).All the processes should happen in the background without user knowing it.
0
Comment
Question by:arun_dp
2 Comments
 
LVL 1

Accepted Solution

by:
manchula earned 120 total points
ID: 2791280
You can use either API or VB functions to manipulate the Registry.

See the section Managing Application Settings in MSDN-VB.

GetSetting function Retrieves registry settings.
SaveSetting statement Saves or creates registry settings.
GetAllSettings function Returns an array containing multiple registry settings.
DeleteSetting statement Deletes registry settings.
{DeleteSetting(appname, section, key)}


You can also refer to this page "Add and delete keys anywhere in the registry without API" - http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=4192


Or, Registry Enable Your Apps:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=7097

0
 

Author Comment

by:arun_dp
ID: 2791435
Thanx Manchula for ur answer
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

824 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