Because the output type of your exe is Console Application instead of
Windows Application. Set it wo Windows Application and the consolw thingie
won't appear anymore.
Cheers,
Marius.
> Why do I obtain a console Window in addition to my CSharp Form when I do the
> following code:
[quoted text clipped - 14 lines]
>
> ?
Michel Racicot - 17 Jul 2003 15:57 GMT
Thank you a lot for the quick answer!
> Because the output type of your exe is Console Application instead of
> Windows Application. Set it wo Windows Application and the consolw thingie
[quoted text clipped - 22 lines]
> >
> > ?
> Why do I obtain a console Window in addition to my CSharp Form when I do the
> following code:
[quoted text clipped - 12 lines]
> }
> }
Make the project type a console application instead of a Windows
application and you'll get both.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jon Skeet - 17 Jul 2003 16:41 GMT
> > Why do I obtain a console Window in addition to my CSharp Form when I do the
> > following code:
[quoted text clipped - 15 lines]
> 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

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too