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 1109481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:14:32+00:00 2026-05-17T02:14:32+00:00

My problem is similar to one posed by Joel Coehoorn some time ago when

  • 0

My problem is similar to one posed by Joel Coehoorn some time ago when he wanted to Redirect Trace Output to Console.

In my case, I’d like to output to a ListView or TextBox or for that matter, any control which can accept text. For this purpose, I’d like to have a general purpose Trace/Debug listener which I can hook to in order to process the messages (convert to a ListViewItem or something) before outputting it.

Is there any way I can achieve this or do I have to build my own Trace Listener?

If it’s worth noting, I run VS2010 ultimate & VS2008 professional.

Solution should be in preferably be in VB.NET but C# is okay.

  • 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-17T02:14:33+00:00Added an answer on May 17, 2026 at 2:14 am

    You could implement your own TraceListener class. Walkthrough here

    You could just implement the Write and WriteLine methods to do this. Initializing it would look something like this:

    var myTraceListener = new ListViewTraceListener(listView);
    Trace.Listeners.Add(myTraceListener);
    

    Of course, this is assuming your class has a constructor that accepts a ListView.

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

Sidebar

Related Questions

I have similar problem to one discussed here , but with stronger practical usage.
I have a problem similar to the one described here: MVC T4 MvcTextTemplateHost and
This question is very similar to that posed here . My problem is that
I have a problem similar to the one found in this Question I have
I'm trying to solve a problem similar to the one described here Initializing strongly
I've tried looking at similar problems, but could not easily find one that helped
I have a problem similar to the egg and the chicken. I have two
My problem is similar to Django Passing Custom Form Parameters to Formset Ive have
This problem is similar to when creating alternate colour table-rows, only we are dealing
I suppose similar problem would have been discussed here, but I couldn't find it.

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.