110,500
社区成员
发帖
与我相关
我的任务
分享
[DllImport("User32.dll")]
private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow);
[DllImport("User32.dll")]
private static extern bool SetForegroundWindow(IntPtr hWnd);
...
{
ShowWindowAsync(temp.MainWindowHandle, SW_SHOWNOACTIVATE);
SetForegroundWindow(temp.MainWindowHandle);
}