Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\my test\my subtest", "name test", TextBox1.Text)
End Sub
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
TextBox2.Text = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\my test\my subtest", "name test", Nothing)