[DllImport("user
private static extern int SetWindowPos(IntPtr hWnd
/// <summary>
/// 得到當前活動的窗口
/// </summary>
/// <returns></returns>
[DllImport("user
private static extern System
哪個窗體想要置頂
SetWindowPos(this
具體說明
如果是用點擊一個按鈕後彈出新窗體
Form
frm
SetWindowPos(GetForegroundWindow()
From:http://tw.wingwit.com/Article/program/net/201311/14257.html