954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Editing windows registry

how can I edit the windows registry using vb.net

nanosani
Unauthenticated Liar
Team Colleague
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
 

why would you want to? I never really thought you could. Or would want to. When you could do it your self bu selecting Run in the start menu, and typing regedit.exe, or what ever yours is depending on your OS. Also dont edit reg. Unless you are completely sure of what your doing. We jsut had a case here ont he board were an adult lost his mouse, keyboard, dh, and floppy drive on such a simple but hard to fix mistake. (=, good luck bro!.

Sphyenx
Posting Whiz
366 posts since Aug 2004
Reputation Points: 13
Solved Threads: 3
 

I have found the way ... and I'll show you the software for registry editing I am making .. hehe

nanosani
Unauthenticated Liar
Team Colleague
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
 

If you need a beta tester. Im up for it.

Put it in a zip, and ill test it on a seperate PC.

Sphyenx
Posting Whiz
366 posts since Aug 2004
Reputation Points: 13
Solved Threads: 3
 

thanks Sphyenx ... I'll see if I dont have a testing pc.

nanosani
Unauthenticated Liar
Team Colleague
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
 

I know this is an old topic, but in case someone else googles it...

For doing a simple key edit in a .net program, you can simply use a variable of the following code:

Dim WSH
        'Changes <key> to <New Value>
        WSH = CreateObject("WScript.Shell")
        WSH.RegWrite("<key>", "<New Value>")
bwasson
Newbie Poster
7 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

read registry value code in here

Dim readValue As String
readValue = My.Computer.Registry.GetValue _
("HKEY_CURRENT_USER\TestKey", "TestValue", Nothing)
Messabebox.shwo("The value is " & readValue)
Niki Skay

nikiskay
Newbie Poster
3 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

read registry values

Dim readValue As String
readValue = My.Computer.Registry.GetValue _
("HKEY_CURRENT_USER\TestKey", "TestValue", Nothing)
MsgBox("The value is " & readValue)

change registry values

Dim autoshell = My.Computer.Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows NT\CurrentVersion\Winlogon", True)
'' Set the value to 0
autoshell.SetValue("autorestartshell", 0)
autoshell.Close()


some time registry programs make virus ex. changing explorer.exe path

nikiskay
Newbie Poster
3 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You