日期:2014-05-20  浏览次数:20763 次

在richTextBox写字时候,光标跳到下面的TextBox
像qq那样,在上面写字的时候,自动跳到下面,是怎么知道在richTextBox上写字?然后TextBox.Focus()?

------解决方案--------------------
C# code

        private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            textBox1.Focus();
            e.Handled = true;
        }