469,631 Members | 1,310 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

suppress console window

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
Jul 21 '05 #1
4 2692
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.

"Eric Nelson" wrote:
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

Jul 21 '05 #2
Clever!
That makes it a Windows NonForms application then, doesn't it...

E ;-)

"Jorge Matos" wrote:
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.

"Eric Nelson" wrote:
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

Jul 21 '05 #3
Funny!

"Eric Nelson" wrote:
Clever!
That makes it a Windows NonForms application then, doesn't it...

E ;-)


Jul 21 '05 #4
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.

"Jorge Matos" wrote:
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.

"Eric Nelson" wrote:
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

Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Eric Nelson | last post: by
4 posts views Thread by nick | last post: by
4 posts views Thread by =?Utf-8?B?UmljaA==?= | last post: by
10 posts views Thread by Stephany Young | last post: by
5 posts views Thread by =?Utf-8?B?SmFtZXMgV29uZw==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.