title: Output Debug and Trace Messages to Form
body: <p>My problem is similar to one posed by Joel Coehoorn some time ago when he wanted to <a href="https://stackoverflow.com/questions/198322/redirect-trace-output-to-console">Redirect Trace Output to Console</a>.</p>
  
  <p>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.</p>
  
  <p>Is there any way I can achieve this or do I have to build my own Trace Listener?</p>
  
  <p>If it's worth noting, I run VS2010 ultimate &amp; VS2008 professional.</p>
  
  <p>Solution should be in preferably be in VB.NET but C# is okay.</p>