Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete registry value and key

Status
Not open for further replies.

barbola

Technical User
Feb 27, 2003
1,132
CA
I have the API code for regDeleteKey but I don't understand how to code it on my form. I have a command button for the user to delete the registry keys that they created earlier in the application. All I can find is the API stuff and nothing how to actually use it.


 
I found sample code and used it, and conformed it until it worked.

I don't understand "how" to call an API function in my code other than to find examples and go by trial and error. I don't understand all the parameters and what they are for and which ones are needed - I have tried to follow sample code but this one I can't figure out.

thanks.




 
Let me ask the question a different way: what is it you are writing to the registry?
 
I wanted to code it into a command button so I don't have to keep changing the value in regedit. I'm testing my program so I want to delete the keys that I created using the comman button.

I found something to read that will help me.


 
My point is that there are at least two ways for VB to read, write and delee registry keys that don't need the API - so I'm trying to find out what your actual goal in order to determine if either is appropriate for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top