111,094
社区成员




[DllImport("user32.dll")]
public static extern int GetFocus();
IntPtr handle = (IntPtr)GetFocus();
if (handle == null)
this.FindForm().KeyPreview = true;
else
{
Control c = Control.FromHandle(handle);//这就是
}