Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Delete A Registry Subkey And Key, Using Visual Basic 2005 Express
jbitkill
post Nov 6 2007, 09:52 AM
Post #1


Member - Active Contributor
Group Icon

Group: Members
Posts: 82
Joined: 30-October 07
From: Wales
Member No.: 25,826



Hi, does anyone know how to delete a registry key/subkey using VB 2005 Express. Also, if any other methods using VB, C#, C++, J#, post them as well.
Go to the top of the page
 
+Quote Post
Jimmy89
post Nov 6 2007, 10:38 AM
Post #2


Living at the Datacenter
Group Icon

Group: [HOSTED]
Posts: 696
Joined: 30-June 06
From: Australia
Member No.: 14,219



you can modify anything in the registry through the My.Computer.Registry namespace.

for example, if you want to delete an entry in the local machine driectory, you would enter
CODE
My.Computer.Registry.LocalMachine.DeleteSubKey(key here)
and change 'key here' to the key you want to delete

This post has been edited by Jimmy89: Nov 6 2007, 10:38 AM
Go to the top of the page
 
+Quote Post
faulty.lee
post Nov 6 2007, 11:38 AM
Post #3


Premium Member
Group Icon

Group: [HOSTED]
Posts: 479
Joined: 5-November 06
Member No.: 17,016



Or you can try the more ancient method
CODE
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("Software", True)
regKey.DeleteSubKey("MyApp", True)
regKey.Close()


Or you can refer to http://www.codeproject.com/vb/net/registry_with_vb.asp
Go to the top of the page
 
+Quote Post
tansqrx
post Nov 6 2007, 07:13 PM
Post #4


Super Member
Group Icon

Group: [HOSTED]
Posts: 522
Joined: 25-April 05
Member No.: 4,374



Aww, why does the easy ones get answered so quickly.
Go to the top of the page
 
+Quote Post
faulty.lee
post Nov 6 2007, 11:55 PM
Post #5


Premium Member
Group Icon

Group: [HOSTED]
Posts: 479
Joined: 5-November 06
Member No.: 17,016



QUOTE(tansqrx @ Nov 7 2007, 03:13 AM) *
Aww, why does the easy ones get answered so quickly.


Well, you can always give more input or tips along the way, tongue.gif
Go to the top of the page
 
+Quote Post
Jimmy89
post Nov 7 2007, 05:05 AM
Post #6


Living at the Datacenter
Group Icon

Group: [HOSTED]
Posts: 696
Joined: 30-June 06
From: Australia
Member No.: 14,219



lol, this one got answered in less then an hour! tongue.gif
Go to the top of the page
 
+Quote Post
faulty.lee
post Nov 7 2007, 02:52 PM
Post #7


Premium Member
Group Icon

Group: [HOSTED]
Posts: 479
Joined: 5-November 06
Member No.: 17,016



I guess I might want to a software to constantly check the latest topic tongue.gif
Go to the top of the page
 
+Quote Post
kelvinmaki
post Nov 7 2007, 03:48 PM
Post #8


Advanced Member
Group Icon

Group: Members
Posts: 170
Joined: 30-July 07
Member No.: 23,704



QUOTE(faulty.lee @ Nov 7 2007, 02:52 PM) *
I guess I might want to a software to constantly check the latest topic tongue.gif


Hmm.. That reminds me of gmail and yahoo mail alert. If there's ever a software made to alert you of latest topics and latest post. You will be able to keep track. wink.gif

But is there such software..
Go to the top of the page
 
+Quote Post
faulty.lee
post Nov 7 2007, 04:28 PM
Post #9


Premium Member
Group Icon

Group: [HOSTED]
Posts: 479
Joined: 5-November 06
Member No.: 17,016



Miss out a word, i actually meant i might wanted to "write" one, tongue.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. [visual Basic] How To Confirm A Array Is Null(6)
  2. Visual Basic Help(5)
  3. Visual Basic: Replace Explained!(4)
  4. Visual Basic: Unload Your Application Correctly!(1)
  5. Visual Basic: Change Your Start Button Text! (XP)(16)
  6. Visual Basic: Random Strings!(10)
  7. VB.NET: Howto Add And Delete Files(8)
  8. Visual Basic 6 + Crystal Reports 9(6)
  9. Visual Basic Names(11)
  10. New Features In Visual Studio 2005 Windows Forms(1)
  11. Visual Basic.NET Help Needed.(7)
  12. Is There A Free IDE For VB.NET Programming?(4)
  13. Visual Basic Express Tutorials(5)
  14. [help] Visual Studio .net 2005 Questions(8)
  15. Vb .net 2005 Bindingnavigator Help(7)
  1. Installed Internet Explorer 7?, Visual Basic Now Broken?(3)
  2. Visual Basic Projects: Scoreboard(0)
  3. Necklace Problem In Visual Basic(3)


 



- Lo-Fi Version Time is now: 7th September 2008 - 04:11 AM