🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #12

Re: console window???

#12
From: Marc Rohloff TeamB
Date: Mon, 24 Apr 2006 23:02
20 lines
1810 bytes
On Mon, 24 Apr 2006 13:31:02 +0200, Simon Rydberg wrote:

> I'm wondering on how I can see the message that writes to 
> System.Console.WriteLine("some message"); in bds 2006??? I can't seem to 
> find the outputconsole anywhere..

You need to create a console application if you want a console.
WinForms applications don't have consoles.

You have two options:
1) Capture the console output using calls to SetOut and SetError and
output it somewhere else.
2) Use System.Diagnostics.Debug.Write or
System.Diagnostics.Trace.Write
3) Use System.Diagnostics.Debugger.Log which will appear in the
debugger.

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <1vy7khtao0uao$.dlg@dlg.marcrohloff.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <444cb6f6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,7f947df4318ccdb7
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: console window???
Newsgroups: borland.public.csharpbuilder.language.csharp
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <444cb6f6$1@newsgroups.borland.com>
Date: Mon, 24 Apr 2006 19:02:49 -0400
Message-ID: <1vy7khtao0uao$.dlg@dlg.marcrohloff.com>
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
X-Antivirus: avast! (VPS 0616-4, 04/21/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 65.31.1.121
X-Trace: newsgroups.borland.com 1145919767 65.31.1.121 (24 Apr 2006 16:02:47 -0700)
Lines: 20
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail