title: How to know if application was run from console or explorer?
body: <p>I'm writing a small application that should run both as winform mode or console mode. The problem is that I don't know how my application was started-up. If it was started-up using console it should do some staff, other wise it should display a winform.</p>
  
  <pre><code>Friend NotInheritable Class Program
      Shared Sub Main()
  
          If The application was run in console mode then
              'Run console processes
          Else
              'Open winform
              Application.Run(New Form1)
          End If
      End Sub
  End Class
  </code></pre>
  
  <p>Cheers in advance :) !</p>