以下是我测试TextBox事件的结果,如有不对,还望更正。
一、用鼠标点击控件,然后离开。
Enter
GotFocus
LostFocus
Leave
Validating
Validated
二、用鼠标,当 Validating 中 CancelEventArgs.Cancel = true 时:
Enter
GotFocus
LostFocus
Leave
Validating
Enter
GotFocus
三、用tab键经过一个控件时。
Enter
GotFocus
KeyUp
Leave
Validating
Validated
LostFocus
四、用tab键当 Validating 中 CancelEventArgs.Cancel = true 时
Enter
GotFocus
KeyUp
Leave
Validating
Enter
KeyUp
本文地址:http://com.8s8s.com/it/it44484.htm