1
Answer

How to Write System Registry Keys using C#

M B

M B

8y
300
1
Code :-
 
Microsoft.Win32.RegistryKey mykey;
mykey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\Office\15.0\Outlook\Preferences");
mykey.SetValue("MaximumAttachmentSize","51200");
mykey.Close();
 
how can Setvalue something like this :-
 
mykey.SetValue("MaximumAttachmentSize","REG_DWORD","51200");
 
mykey.SetValue(Name,Type,Data)
Answers (1)