Stopping the DOS-Prompt window appearing in C#

Soldato
Joined
9 Jul 2006
Posts
3,322
Location
London
Hey guys, anyone know how I can stop the DOS prompt window appearing when I run my C# program?

It basically start up with no windows open, and a NotifyIcon in the tray, but this pesky prompt keeps appearing :mad:
 
isnt it called the console?

ive only done the 'hello world' starter program in C# and that was in the console window.
 
growse said:
You built this in VS.NET? Did you set it up as a console project or a standard windows forms project?
Yes it's in VS 2005. I set it up as an empty C# project. I read somewhere that it'll always appear if it isn't a Windows application, but surely you can change that with some code?
 
You've created a Console project. It's useful for really minimal UI while your coding. Say you're not interested in presentation but are interested in a few stats or results, or you want a list of results easily written out for a test harness.

If you want to work with Windows Forms just make a Windows project and it will place a Form in your project and hook up the code to instantiate it etc. You can go from there.
 
Back
Top Bottom