944,148 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 9012
  • VB.NET RSS
Dec 7th, 2004
0

Editing windows registry

Expand Post »
how can I edit the windows registry using vb.net
Similar Threads
Team Colleague
Reputation Points: 45
Solved Threads: 56
Unauthenticated Liar
nanosani is offline Offline
1,767 posts
since Jul 2004
Dec 7th, 2004
0

Re: Editing windows registry

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!.
Reputation Points: 13
Solved Threads: 3
Posting Whiz
Sphyenx is offline Offline
366 posts
since Aug 2004
Dec 8th, 2004
0

Re: Editing windows registry

I have found the way ... and I'll show you the software for registry editing I am making .. hehe
Team Colleague
Reputation Points: 45
Solved Threads: 56
Unauthenticated Liar
nanosani is offline Offline
1,767 posts
since Jul 2004
Dec 8th, 2004
0

Re: Editing windows registry

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

Put it in a zip, and ill test it on a seperate PC.
Reputation Points: 13
Solved Threads: 3
Posting Whiz
Sphyenx is offline Offline
366 posts
since Aug 2004
Dec 14th, 2004
0

Re: Editing windows registry

thanks Sphyenx ... I'll see if I dont have a testing pc.
Team Colleague
Reputation Points: 45
Solved Threads: 56
Unauthenticated Liar
nanosani is offline Offline
1,767 posts
since Jul 2004
Sep 25th, 2008
0

Re: Editing windows registry

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:

VB.NET Syntax (Toggle Plain Text)
  1. Dim WSH
  2. 'Changes <key> to <New Value>
  3. WSH = CreateObject("WScript.Shell")
  4. WSH.RegWrite("<key>", "<New Value>")
Last edited by bwasson; Sep 25th, 2008 at 3:24 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bwasson is offline Offline
7 posts
since Sep 2008
Jul 23rd, 2011
0
Re: Editing windows registry
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
Last edited by nikiskay; Jul 23rd, 2011 at 4:11 pm. Reason: color tag comes in my code bigin
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nikiskay is offline Offline
3 posts
since Jul 2011
Jul 23rd, 2011
0
Re: Editing windows registry
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nikiskay is offline Offline
3 posts
since Jul 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: How to write this reg key ???
Next Thread in VB.NET Forum Timeline: Need help to image array save as byte





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC