Making System.Console.WriteLine() text outputs visible in a GUI program ?

Making System.Console.WriteLine() text outputs visible in a GUI program ?

Post by kenny0 » Sat, 26 May 2007 17:11:46


In general the program is GUI based.

However sometimes I would like to wirte some text lines to Console as if it is
a Console program.

When I write a System.ConsoleWriteLine() statement this is accepted without error (during build and
runtime). Unfortunately no Cosole pops up at runtime and showing the text.

I assume I have to enable the Console resp. make it visible and let it popup when necessary.

How do I do this (from a GUI program) ?`

Ken
 
 
 

Making System.Console.WriteLine() text outputs visible in a GUI program ?

Post by Jon Skeet » Sat, 26 May 2007 17:38:53


To *which* console though - that's the issue.


Rather than bring up a "real" console, I suggest you use a textbox or
something similar. Redirect Console.Out and Console.Error to
TextWriters which write to the textbox.

Jon

 
 
 

Making System.Console.WriteLine() text outputs visible in a GUI program ?

Post by RYAN » Sat, 26 May 2007 18:45:02

u can see the text in the window of menubar - debug - window-outputs.

i havn't find ways on how to start the console.

"Ken Williams" < XXXX@XXXXX.COM >