title: C# - Minimize to tray at system startup
body: <p>In my application, I have an option to start the application when Windows is started.  That works great.  I also have it so that, when minimized, the application is minimized to the system tray.  Is there a way that I could have it be automatically minimized when started up at the same time as Windows?  The only way I could think of, is to retrieve the amount of time that they system has been on and use that data to decide whether the machine had recently started.  Obviously there are a lot of flaws with that theory.  Anybody have any other ideas as to how this could be done?  </p>