C# WINFORM 强制让窗体获得焦点
摘要:
//调用API [System.Runtime.InteropServices.DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto, ExactSpelling = true)] public static extern IntPtr GetForegroundWindow(); //获得本窗体的句柄 [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "S 阅读全文
posted @ 2012-01-13 13:56 zlb 阅读(2468) 评论(0) 推荐(1) 编辑