Solved

Opening a Registry and deleting a key in it

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 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

13 Experts available now in Live!

Get 1:1 Help Now