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

VS c# Windows窗体应用程序 控件事件列表中为什么没有获得焦点事件,该如何处理

2012-04-07 
VS c# Windows窗体应用程序 控件事件列表中为什么没有获得焦点事件VS c# Windows窗体应用程序 控件事件列

VS c# Windows窗体应用程序 控件事件列表中为什么没有获得焦点事件
VS c# Windows窗体应用程序 控件事件列表中为什么没有获得焦点事件

[解决办法]
Enter事件
[解决办法]
獲得焦點事件
this.Enter+=new System.EventHandler(Form1_Enter);
失去焦點事件
this.LostFocus+=new System.EventHandler(Form1_LostFocus);
另外,還有bool Controls.Focus()方法可判斷
[解决办法]
onfocus Event

--------------------------------------------

Fires when the object receives focus. 

Event Information

Bubbles No 
Cancels No 
To invoke Click an object. 
Use keyboard navigation. 
Invoke the focus method. 
Invoke the setActive method. 
 
Default action Sets focus to an object.

查看MSDN

热点排行