title: Force application to shut down (.net)
body: <p>I'm looking to force my application to shut down, and return an Exit code.  Had a look on MSDN and I can see that in WPF the Application has a Shutdown method which takes an error code as a parameter, but there doesn't appear to be one for System.Windows.Forms.Application.</p>
  
  <p>I can see Application.Exit() but not a way to pass back an error code.</p>
  
  <p>Does anyone know off-hand if this is possible?</p>
  
  <p>Thanks</p>