Can a Forms Application trace to Console.Out?

  • Thread starter Thread starter james
  • Start date Start date
J

james

Hi Guys,

Does anyone know a way to view tracing from a Forms Application in
real time? Currently our application traces to log files, but these
are cumbersome and have to be manually refreshed. For Console
applications we simple trace to Console.Out. Any help is appreciated.

Thanks,
James
 
James,

Are you using the Trace mechanism in .NET? You should be providing a
trace provider which will write to the console.

That being said, you should be able to change your windows forms app to
a console app (in the project properties) and the console window should show
up. You might want to do this for debug builds only though.

Hope this helps.
 
Wow thanks Nicholas everything works fine. I thought switching
between Console and Windows Application would have bigger implications
than that.

Regards,
James
 
All my winforms output logging data to the console. Early on in my
software I redirect the console to its own winforms textbox.
 
Back
Top