One way to achieve what you want is to change the application into a Windows
Forms application and remove all the forms and create a class with a static
void Main() method in it.
> Hi folks,
> How do I suppress the console window in a console app? If I double-click the
> app from explorer, I'd like the window not to appear.
> Thanks,
> Eric
Eric Nelson - 21 Oct 2004 01:43 GMT
Clever!
That makes it a Windows NonForms application then, doesn't it...
E ;-)
> One way to achieve what you want is to change the application into a Windows
> Forms application and remove all the forms and create a class with a static
[quoted text clipped - 5 lines]
> > Thanks,
> > Eric
Jorge Matos - 21 Oct 2004 02:13 GMT
Funny!
> Clever!
> That makes it a Windows NonForms application then, doesn't it...
>
> E ;-)
Joe Rattz - 20 Apr 2005 21:03 GMT
I already had a console app written and was about to create a new windows app
and do what you said. But, just for kicks, I decided to change the project's
Output Type property from Console Application to Windows Application just to
see what it would do. IT WORKED.
The property is in the project properties dialog, Common
Properties|General|Output Type. Setting it to Windows Application eliminated
my console window.
Thanks.
> One way to achieve what you want is to change the application into a Windows
> Forms application and remove all the forms and create a class with a static
[quoted text clipped - 5 lines]
> > Thanks,
> > Eric