Does anybody has any idea how to listen to the console and show its contents in a Windows Form Application?
How to show the console contents in a Window Form?
Collapse
X
-
You could also attach a Listener object to intercept output.
That would save you trawling through your code and adding additional lines to output the data somewhere else.Comment
-
You could also attach a Listener object to intercept output.
That would save you trawling through your code and adding additional lines to output the data somewhere else.Comment
-
I was thinking more in terms of if it's hundreds of lines of code all over the place. In those circumstances a listener would be much quicker to implement than trawling through existing code - it's fairly simple to setup requiring only a handful of lines of code and only needs to be plugged in once. It's also got the added benefit that once it's set up, it's there. You don't need to remember to add those additional lines in the future either, making it easier to maintain.
I guess it really depends on what you want to do with it long term.Comment
Comment