获取光标位置: int i = this.textBox1.SelectionStart; 设置光标位置 this.textBox1.SelectionStart=this.textBox1.Text.Length;