Jon Skeet <sk***@pobox.com> wrote:
Michel Racicot <mi************@cognicase.ca> wrote: Why do I obtain a console Window in addition to my CSharp Form when I do the
following code:
using System.Windows.Forms;
class MyWindow: Form
{
}
class MyApp
{
static void Main ()
{
Application.Run (new MyWindow ());
}
}
Make the project type a console application instead of a Windows
application and you'll get both.
Apologies - I misread the question, thinking that you *wanted* both a
console and a GUI. Make the project type Win32 Application (or whatever
it's called - just not Console).
From the command line, you can build with /t:winexe to do the same
thing
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too