Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove the DOS window when I execute my C# project

Status
Not open for further replies.

polocar

Programmer
Sep 20, 2004
89
IT
Hi,
I would like to know if there is a way to avoid the DOS window appearing when I execute my C# project (it appears in both cases: when I launch the project from Visual Studio, clicking on Debug -> Start Debug, and when I double click on the .exe file in the bin/Debug or bin/Release subfolder).
I create my project in this way (I use Visual Studio 2005 Professional Edition):
File -> New -> Project
In the "New Project" window I select Visual C# - Windows as Project type, and Empty project as Installed Visual Studio Model.
Must I select some other project type/model? Must I change some type of setting in the inner of my project?

Thank you very much
 
Ok, it is because, in the project properties, my project was set as Console Application. It is sufficient to go to Project -> Project Properties and, in the Application tab, change Output type from Console Application to Windows Application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top