TextBox问题
如何实现删除TextBox中指定行数的文本?
程序代码: int start = textBox1.SelectionStart;
int end = textBox1.SelectionLength;
string txt = textBox1.Text;
textBox1.Text = txt.Substring(0, start) + txt.Substring(start + end, txt.Length - start - end);
textBox1.Focus();删除选中的文本









