Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone,

fist of i want to say is that am using visual studio's as my application maker and using virtual basic as my language, am currently having to make a application as a school project that i need to turn in this Friday so any help will be appreciate it

the application has 5 different buttons with different functions, the button am having problems with is the same one with the renaming of the registry key.

by the way am not a programmer nor do i know much about coding since i am new to all this and trying my best to understand the class am currently in.

can someone PLEASE help me by writing me the code to do this last function,,,please i have tried so much with trying to make this work ...i have all 4 out of 5 buttons to work ,almost finish but missing this last one. links and forms do not help me like because i don't understand them, like i say am new to all this .

{HKEY_LOCAL_MACHINE\SOFTWARE\"TEST1" Rename to "TEST2"
trying to make button to rename a key that already exist.

I HAVE TILL FRIDAY TO GET THIS DONE IF NOT ILL GET A F ,CAN ANYONE HELP ME PLEASE.
THANKS IN ANTISENSE
Posted
Comments
ledtech3 14-Aug-14 0:52am    
Google and msdn are your friend.
https://www.google.com/?gws_rd=ssl#q=how+to+rename+a+registry+key+VB.net

1 solution

There is no simple way by programming to rename a registry key. You would have to create a new key, copy the subkeys and values from the old one to the new one, and delete the old key and its content. This seems like quite an advanced test for a school project, especially given your comments about your level of experience. I suggest you take a look at the RegistryKey class[^] and see if you can provide at least some of the answer.
 
Share this answer
 
Comments
CPallini 14-Aug-14 6:21am    
5.
Richard MacCutchan 14-Aug-14 6:23am    
Thanks (again). Are you stalking me?
CPallini 14-Aug-14 6:27am    
Indeed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900