Okuma
RegistryKey rgkSettings = Registry.CurrentUser.CreateSubKey("MyRegistryKey");
txtUserID.Text = (string)rgkSettings.GetValue("LoginUserID");
Yazma
RegistryKey rgkSettings = Registry.CurrentUser.CreateSubKey("MyRegistryKey");
rgkSettings.SetValue("LoginUserID", txtUserID.Text);