جربت الكود ده عشلن اعدل قيمة في ال registery بس مش راضي يشتغل
بيديني exception
public void saveSetting(string Name , string Value)
{
string RegisterKey;
RegisterKey = "Software\\WHSoft":
//Set the new registry value
Microsoft.Win32.RegistryKey reg;
//open the key with write access
reg = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(RegisterKey , true);
//setup the value
reg.SetValue(Name , Value);
//close the key
reg.Close();
}