Results 1 to 5 of 5

Thread: [Help]Need help with Registry

Threaded View

  1. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    76

    Re: [Help]Need help with Registry

    Code:
       
    Dim regKey As RegistryKey
    
    
     Private Sub adv_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles adv.Click
            regKey = Registry.CurrentUser.OpenSubKey("Software\Policies\Microsoft\Internet Explorer\Control Panel", True)
    
            If adv.Text = "Hide" Then
                regKey.SetValue("AdvancedTab", 1)
                adv.Text = "Show"
                regKey.Close()
            Else
                regKey.SetValue("AdvancedTab", 0)
                adv.Text = "Hide"
                regKey.Close()
            End If
        End Sub
    Even after removing regKey.close() registry doesn't update
    Last edited by riteshtechie; Nov 23rd, 2009 at 05:49 AM.
    < advertising link removed by moderator >

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width