473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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

May 25 '07 #1
2 3256
On May 25, 9:11 am, kenn...@mercedes.com (Ken Williams) wrote:
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.
To *which* console though - that's the issue.
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) ?
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

May 25 '07 #2
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" <ke*****@mercedes.comдÈëÏûÏ¢
news:46***********************@newsspool3.arcor-online.net...
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

May 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Martin Honnen | last post by:
With both .NET 1.0 and 1.1 I have found the following strange behaviour where System.Xml.XmlDocument.LoadXml doesn't throw an error when parsing a text node with a character reference to an invalid...
4
by: William McIlroy | last post by:
Array Bounds Exception inside system.xml.dll. Test data is a dozen GB (available for the asking on CD). Source code follows. Call into system.xml.dll happens at the while statement.. using...
12
by: newsgroupie | last post by:
Hi Newsgroupies, I'm writing a Web Forms program using C# (VS.NET 2003) and trying to monitor it whilst running using "System.Console.WriteLine(<params>)" but can't for the life of me find where...
5
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
10
by: Jeff Grills | last post by:
I am an experienced C++ programmer with over 12 years of development, and I think I know C++ quite well. I'm changing jobs at the moment, and I have about a month between leaving my last job and...
20
by: djc | last post by:
I get this *intermittently* on a utility I am working on. I don't know whats going on but here are a few points about it: - using VS 2005, running on xp sp2 - program uses multiple threadpool...
1
by: =?Utf-8?B?QnJpYW4gQ29iYg==?= | last post by:
This code is contained in one source file in VS 2005 project: using System; using System.Collections.Generic; using System.Text; using System.Reflection; namespace ReflectionTest {...
1
by: myburt | last post by:
I'm working on very simple lessons to learn c #. Can anyone give an example of how to make a virtual object such as these Thank You. namespace critter_menu { class Program {
8
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service and hosted it in Windows Services. It is working fine. Now I am trying to implement the X509 certificates for message layer security. But it is throwing the following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.