title: How to let a Visual Basic 2015 form app run as console app
body: <p>I have a VB.net 2015 application that I would also like to be able to run as a command-line application.</p>
  
  <p>I found an <a href="https://msdn.microsoft.com/library/stws2269%28v=vs.100%29.aspx" rel="nofollow">article</a> on how to do this for visual studio 2010 but I cannot do that in 2015.</p>
  
  <p>I think,  I am able to read command line arguments, it’s just that if do not now on how to let my program decide that if command-line arguments are present that it should not show the main form, but only run a specific function that is dedicated for processing the command-line options.</p>
  
  <p>I think if need to do something to intercept an application start event or so? I do not know how to that.</p>
  
  <hr>
  
  <p>*update i have it working now will post code later,after i have finished some code polishing</p>