Solved

Opening a Registry and deleting a key in it

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

776 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