//C# code
using Microsoft.Win32;
RegistryKey regKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);
//Set the program to start with Windows:
regKey.SetValue(Application.ProductName, Application.ExecutablePath);
//Stop the program from starting with Windows:
regKey.DeleteValue(Application.ProductName);
Wednesday, May 24, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment