添加一个label空间在label中Click事件中添加
this.textBox1.Text += label1.Text;
this.textBox1.Focus();
this.textBox1.Select(textBox1.Text.Length , 0);
光标就会随着输入字符而移动了。
C#:TextBox换行、设置光标位置、随文本滚动
// 换行
textBox1.Text += Environment.NewLine;
// 设置光标位置到文本最后
textBox1.SelectionStart = textBox1.TextLength;
// 随文本滚动
textBox1.ScrollToCaret();//不一定管用,请自己试用。