2014年3月30日
摘要: If notepad is already started, you should write:// import the function in your class[DllImport ("User32.dll")]static extern int SetForegroundWindow(IntPtr point);//...Process p = Process.GetProcessesByName("notepad").FirstOrDefault();if( p != null){ IntPtr h = p.MainWindowHandle; 阅读全文
posted @ 2014-03-30 21:03 武胜-阿伟 阅读(533) 评论(0) 推荐(0) 编辑