Have I missed something?  Isn't this what happens automatically when you
build a console application?  Or is there some nuance I've failed to spot?
(I've only had 1 coffee today...)

So if you want this behaviour for a Windows Forms application, just set the
output type to Console Application.  (There's nothing magic about the
/t:winexe switch - it just disables the behaviour your describe.  Console
applications are definitely allowed to open windows.)


--
Ian Griffiths
DevelopMentor

----- Original Message -----
From: "Rune Christensen 8397" <[EMAIL PROTECTED]>


> I'd like to implement the following algorithm for when a Windows
application
> wants console window / command line window access:
> 1. Was application started from a command line window?
>         Yes: select this window and goto 3.
> 2. Create a command line window and select this
> 3. Connect the In, Out and Error attributes of System.Console to selected
> window.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to