How to force my application to start minimized when launched at windows startup through registry key "Run"?
I'm using this code to add my application to Windows Startup through registry, however i don't know how to force it to start minimized (i only want to start the application minimized when it's launched this way, through registry, and not when the user double-click the .exe). Some sample code would be appreciated. Thanks in advance!
RegistryKey startapp = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
startapp.SetValue("MyApp", Application.ExecutablePath.ToString());