Best Practice for a text console/log within a WinForm?

I do a lot of work with WinForms and in several of my projects it would be very useful to have a sort of log where debug messages and such can be written to. Better yet would be the ability to type in commands and handle those, but I won't get greedy.

I once had the brilliant idea of using a multiline TextBox and ssimply adding new messages to its Text field, but then I learned the massive overhead of combining strings like that. I eventually found a way to have a console window running at the same time as my WinForms application, but that isn't exactly an ideal solution.

Is there an accepted or common way of doing this?

by cadika_orade via /r/csharp

Leave a Reply