Registry setvalue error...help please

Getox

Well-known member
Joined
Jul 8, 2004
Messages
122
i got my app to read the info from the registry but trying to set/update the value of it wont work..
the code im using is
Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim rk As Microsoft.Win32.RegistryKey

        rk = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\Trelio Software\TBrowser")
        rk.SetValue("startpage", homepage.Text)
        rk.SetValue("searchpage", search.Text)
    End Sub

anyone know whats wrong? thanks



EDIT:
nevermind i had to make it open with write access by adding "True" at the end of the rk line
 
Last edited by a moderator:
Back
Top