To do this, split the string sinto many lines and use AppendText to add these substrings, if you check the MSDN you will see that:
AppendText , , .
public string s = "Put you terribly long string here";
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
textBox1.BeginInvoke(new Action(() =>
{
for (int i = 0; i < s.Length; i += 1000)
{
if (i+1000 > s.Length)
{
textBox1.AppendText(s.Substring(i, s.Length-i));
}
else
{
textBox1.AppendText(s.Substring(i, 1000));
}
}
}));
}
1000, 1500, 2000, , .
, .
:
AppendText WindowsForms, WPF, WindowsPhone WinRT. , .