I'm trying to create an app with the following behavior:
1) If no command line argumentsare passed to it, it launches GUI
2) If command line arguments are passed to it, it operates in the console mode.
I can do this by having the console app launch GUI if there are no arguments, but there are several problems with that:
1) If launching the app from the explorer, a console window appears besides the windows form and stays there. If it's closed, the form is closed too.
2) If launching GUI from the console window, the console is waiting for the windows form to be closed (unlike when launching notepad i.e.).
Is there a good solution to this?