suppress console window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
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.
 
Back
Top