Redirecting Console.WriteLine() to Textbox

前端 未结 4 1653
死守一世寂寞
死守一世寂寞 2020-12-04 18:08

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

4条回答
  •  借酒劲吻你
    2020-12-04 18:45

    put textbox on the form ( multiple lines enabled) or text area then you can do in your loop

    txtOutput.Text += "Progress " + percent + "% completed." + Environment.NewLine();
    

提交回复
热议问题