Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / April 2005

Tip: Looking for answers? Try searching our database.

suppress console window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric Nelson - 20 Oct 2004 18:59 GMT
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
Jorge Matos - 20 Oct 2004 21:41 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.