首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

在richTextBox写字时候,光标跳到下面的TextBox解决方案

2012-02-29 
在richTextBox写字时候,光标跳到下面的TextBox像qq那样,在上面写字的时候,自动跳到下面,是怎么知道在richT

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

[解决办法]

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

热点排行