得到焦点控件
来源:互联网 发布:手机号码定位追踪软件 编辑:程序博客网 时间:2024/04/28 00:46
public class MyForm : Form
{
[DllImport("user32.dll", CharSet=CharSet.Auto, CallingConvention=CallingConvention.Winapi)]
internal static extern IntPtr GetFocus();
//得到焦点控件
private Control GetFocusedControl()
{
Control focusedControl = null;
// To get hold of the focused control:
IntPtr focusedHandle = GetFocus();
if(focusedHandle != IntPtr.Zero)
// Note that if the focused Control is not a .Net control, then this will return null.
focusedControl = Control.FromHandle(focusedHandle);
return focusedControl;
}
}
- 得到焦点控件
- 如何让datawindow控件无法得到焦点!!
- Android在TalkBack模式下,让控件主动得到焦点
- 得到和失去焦点
- javascript 失去得到焦点
- 文本框得到失去焦点
- 文本框得到失去焦点
- VC6.0文本输入框控件在运行时得到输入焦点的方法
- IE6得到焦点同时失去焦点问题
- css3表达式得到焦点即失去焦点
- 失去和得到焦点OnActivate
- 失去和得到焦点OnActivate
- Easyui-textbox得到焦点方法
- 用户控件获得焦点
- 设置控件焦点
- 回车切换控件焦点
- 设置控件焦点
- android控件获取焦点
- 输入与输出
- 考研要不要过“品德关”?
- 新手入门经典:Jsp环境配置完全图解
- 类的设计方法
- Struts环境配置
- 得到焦点控件
- Struts+Spring+Hibernate 分析(转)
- 使用UML编写Java应用程序
- 数据库设计指南(转载)
- 百度关键字排名的几个规则
- .NET平台下WEB应用程序的部署(安装数据库和自动配置)
- 三十四个超级经典小故事 (转载)
- HTML组件(HTML COMPONENTS)介绍 (*.HTC)
- HTC小注