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