我要求的是在TextBox中已经有内容的情况下,插入一个字符串进去。例如,在TextBox中已有内容"Tom said and left",如果光标在said之后时,按下button后,TextBox的内容变成"Tom said hello and left"。(要求简单地向光标处插入字符,如光标在Tom后,则TextBox变成"Tom hello said and left",不用判断生成串的意义)
TextBox中已经有内容了,我要求的是,向TextBox中插入内容。比如,在TextBox中已有内容"Tom said and left"了,光前光标在said之后,要求按下button后,TextBox的内容变成"Tome said hello and left"。(这只是个例子,实际要求是光标可在TextBox中的任何位置)