RegistryKey rkCurrentUser = Registry.CurrentUser; RegistryKey rkTest = rkCurrentUser.OpenSubKey("Software\\Medcon\\Settings\\Database", true); string tom = (string)rkTest.GetValue("Database Name"); textBox1.Text = tom;
RegistryKey rkLocalMachine = Registry.LocalMachine; RegistryKey hostName = rkLocalMachine.OpenSubKey("Software\\Medcon\\Settings\\Database", true); string tom = (string)hostName.GetValue("Database Name"); textBox1.Text = tom;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)