using Microsoft.Win32;[CSHARP][/CSHARP]

[CSHARP]private void AddStartUpKey(string _name, string _path) { RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Micros oft\Windows\CurrentVersion\Run", true); key.SetValue(_name, _path); }

private void RemoveStartUpKey(string _name) { RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Micros oft\Windows\CurrentVersion\Run", true); key.DeleteValue(_name, false); }[/CSHARP]