Re: Console window for Windows application

Ian Griffiths <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <00a401c212ea$751df520$661ba8c0@imola>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.