C#中Enter事件,Foucs事件,Validating事件,Validated事件的先后顺序。

dlmeijianyu 2008-10-13 08:38:15
如题,上面几个事件的先后的顺序。
...全文
145 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
dlmeijianyu 2008-10-14
  • 打赏
  • 举报
回复
自己顶起来。
yilanwuyu123 2008-10-14
  • 打赏
  • 举报
回复
最简单的办法
把这几个事件都写出来
断点
调试
OK。。
onioncong 2008-10-14
  • 打赏
  • 举报
回复
From MSDN:
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or SelectNextControl methods, or by setting the P:System.Windows.Forms.ContainerControl.ActiveControl property to the current form, focus events of the Control class occur in the following order:

Enter

GotFocus

Leave

Validating

Validated

LostFocus

When you change the focus by using the mouse or by calling the Focus method, focus events of the Control class occur in the following order:

Enter

GotFocus

LostFocus

Leave

Validating

Validated

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧