How to detect whether application started from startup or started by user?
<p>I'm making a windows forms application in c# that will start in windows start up . User also can start the application from its icon on desktop.I want the application to be minimized in system tray if it was started from windows start up and to be in normal windows state if started by user clicking on its shortcut icon. Is there a a way to detect whether the application started by user or by start up ? </p>

<h3>EDIT</h3>

<p>i am using this code to make application appear on startup</p>

<pre><code>regesiterykey.SetValue("MyApp", Application.ExecutablePath.ToString());
</code></pre>
