Solved

Opening a Registry and deleting a key in it

Posted on 2000-05-08
2
159 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 40 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Vlookup to move data back to source. 4 83
Problem to skip loop 6 54
How to produce a SHA-1 hash function in vb6 in order to save it to a table 8 36
MsgBox 4 42
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

947 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now