redirect Console.WriteLine to a textbox

  • Thread starter Thread starter alex
  • Start date Start date
A

alex

Hi,
I have several classes, which i use in my windows application.
The classes uses console.writeline to print status information.
Now i have a log-textbox in my windows application and i want
that the console text appears in this textbox automatically when
the other classes writes to console.
Has anybody has a idea or a solution? (with a short code snippet,
because im not a c# professional)

Tank You
Regards, alex
 
I recently wrote a class to do just that, however, it's a bit long to
post on a newsgroup. I was planning (and am still considering) writing
a CodeProject.com article about it, however, I have since found two
other people have already code and posted online similar class.

Just google "TextBoxWriter".
 
I recently wrote a class to do just that, however, it's a bit long to
post on a newsgroup. I was planning (and am still considering) writing
a CodeProject.com article about it, however, I have since found two
other people have already code and posted online similar class.

Just google "TextBoxWriter".

Thank You,
i found exactly what i want.

regards
alex.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top