在richTextBox写字时候,光标跳到下面的TextBox
像qq那样,在上面写字的时候,自动跳到下面,是怎么知道在richTextBox上写字?然后TextBox.Focus()?
[解决办法]
- C# code
private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e) { textBox1.Focus(); e.Handled = true; }
发布时间: 2012-02-29 16:44:11 作者: rapoo
在richTextBox写字时候,光标跳到下面的TextBox
像qq那样,在上面写字的时候,自动跳到下面,是怎么知道在richTextBox上写字?然后TextBox.Focus()?
[解决办法]
private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e) { textBox1.Focus(); e.Handled = true; }