Redirecting Console.WriteLine() to Textbox
I'm building this application in Visual Studio 2010 using C#. Basically there are 2 files, form1.cs (which is the windows form) and program.cs (where all the logic lies). //form1.cs public partial class Form1 : Form { //runButton_click function } //program.cs class Program { static void Main() { while(blah-condition) { //some calculation Console.WriteLine("Progress " + percent + "% completed."); } } } There is a Run button and a blank textbox . When the user hits the Run button , program.cs will perform some task and constantly printing out the progress using Console.WriteLine() onto the