williambirkin

恭喜发财!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
测试代码如下:
测试代码

测试结果:
画面初始化时焦点在textBox1中,
然后输入“1”和“2”。
鼠标点击进入textBox3,输入“1”,
然后点击其他按钮。
画面初始化时焦点在textBox1中,
然后输入“1”和“2”。
按tab键进入textBox3,输入“1”,
然后按按tab键焦点移动到richTextBox1。

事件顺序

textBox1.
Focused

textBox3.
Focused

ActiveControl

事件顺序

textBox1.
Focused

textBox3.
Focused

ActiveControl

textBox1_Enter; FALSE FALSE textBox1 textBox1_Enter; FALSE FALSE textBox1
textBox1_GotFocus; TRUE FALSE textBox1 textBox1_GotFocus; TRUE FALSE textBox1
textBox1_KeyDown; TRUE FALSE textBox1 textBox1_KeyDown; TRUE FALSE textBox1
textBox1_KeyPress; TRUE FALSE textBox1 textBox1_KeyPress; TRUE FALSE textBox1
textBox1_TextChanged; TRUE FALSE textBox1 textBox1_TextChanged; TRUE FALSE textBox1
textBox1_KeyUp; TRUE FALSE textBox1 textBox1_KeyUp; TRUE FALSE textBox1
textBox1_KeyDown; TRUE FALSE textBox1 textBox1_KeyDown; TRUE FALSE textBox1
textBox1_KeyPress; TRUE FALSE textBox1 textBox1_KeyPress; TRUE FALSE textBox1
textBox1_TextChanged; TRUE FALSE textBox1 textBox1_TextChanged; TRUE FALSE textBox1
textBox1_KeyUp; TRUE FALSE textBox1 textBox1_KeyUp; TRUE FALSE textBox1
textBox1_Leave; FALSE TRUE textBox3 textBox1_Leave; TRUE FALSE textBox3
textBox1_Validating; FALSE TRUE textBox3 textBox1_Validating; TRUE FALSE textBox3
textBox1_Validated; FALSE TRUE textBox3 textBox1_Validated; TRUE FALSE textBox3
textBox3_Enter; FALSE TRUE textBox3 textBox3_Enter; TRUE FALSE textBox3
textBox3_Click; FALSE TRUE textBox3 textBox3_TextChanged; FALSE TRUE textBox3
textBox3_TextChanged; FALSE TRUE textBox3 textBox3_Leave; FALSE TRUE richTextBox1
textBox3_Leave; FALSE FALSE button1 textBox3_Validating; FALSE TRUE richTextBox1
textBox3_Validating; FALSE FALSE button1 textBox3_Validated; FALSE TRUE richTextBox1
textBox3_Validated; FALSE FALSE button1        
posted on 2007-05-09 14:28  williambirkin  阅读(986)  评论(0编辑  收藏  举报