G
Guest
I'm trying to make an application that has both a WinForms interface _and_ a
command-line interface (using C#). I'm having some success, with the
following limitations:
If I compile it as a WinExe I get no command-line functionality. (Although
Console output can be redirected to a file.)
If I compile it as a console app, I get the console functionality _and_ the
WinForms functionality (YAY!), but...
When the app is executed from an icon (or menu or whatever) the console
window displays along with the WinForms window (yuck).
So...
How can I hide the "DOS window" when a console app executes from Windows?
I think that having the console app minimize its main window and not display
a button in the task bar will be enough.
command-line interface (using C#). I'm having some success, with the
following limitations:
If I compile it as a WinExe I get no command-line functionality. (Although
Console output can be redirected to a file.)
If I compile it as a console app, I get the console functionality _and_ the
WinForms functionality (YAY!), but...
When the app is executed from an icon (or menu or whatever) the console
window displays along with the WinForms window (yuck).
So...
How can I hide the "DOS window" when a console app executes from Windows?
I think that having the console app minimize its main window and not display
a button in the task bar will be enough.