Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6737891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:18:06+00:00 2026-05-26T11:18:06+00:00

I am using external library ( .dll ), some of it’s methods (including constructors)

  • 0

I am using external library ( .dll ), some of it’s methods (including constructors) write stuff to standard output (a.k.a console) because it was intended to be used with console apps. However I am trying to incorporate it into my windows forms applications, so I would like to capture this output and display it in a way I like. I.e. “status” text field within my window.

All I was able to find was ProcessStartInfo.RedirectStandardOutput, though apparently it doesn’t fit my needs, because it is used with an additional application (.exe) in examples. I am not executing external apps, I am just using a dll library.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:18:07+00:00Added an answer on May 26, 2026 at 11:18 am

    Create a StringWriter, and set the standard output to it.

    StringWriter stringw = new StringWriter();
    Console.SetOut(stringw);
    

    Now, anything printed to console will be inserted into the StringWriter, and you can get its contents anytime by calling stringw.ToString() so then you could do something like textBox1.AppendText(stringw.ToString()); (since you said you had a winform and had a status text field) to set the contents of your textbox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C++ dll reporting lots of useful information via console output using
In my application I'm using an external library (Batik 1.7) that is made up
I have a problem; I'm using an external library where one particular event has
Is there any external library using which one can edit and save XML files
I'm attempting to compile a working copy of the MagickNet class library (DLL) using
I am using an external dll in my project. When i try to run
I'm in the process of doing some Java<->.NET interop code using a native library
I am wanting to write some cross-platform library code. I am creating a library
I'm trying to use an external library DevExpress.XtraTreeList.v8.1.dll in my vsto office addin built
I am using Visual Studio 5.0 I have DLL and a static library .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.