6
Answers

Registry is not working

Ask a question
mohit anand

mohit anand

10y
778
1
RegistryKey autoStartOnConnKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", true);
 
autoStartOnConnKey.SetValue(@"Shell", @"notepad.exe", RegistryValueKind.String);
 
MessageBox.show("done");
 

above code is working fine but there is nothing update in my registry.
i want to update shell with value notepad.exe
 
thanks .

Answers (6)