How do I create a key in the registry (Visual C #)?
I am developing a Windows application in the .NET framework using C #. During the installation of the application, I want to write a specific value to the registry.
+3
hamid reza mansouri
source
to share
1 answer
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Names");
key.SetValue("Name", "Isabella");
key.Close();
http://msdn.microsoft.com/en-us/library/microsoft.win32.registry.aspx
+8
hamid reza mansouri
source
to share