using System.Runtime.InteropServices;[DllImport("user32.dll", EntryPoint="ShowWindow")]
public static extern int ShowWindow (
int hwnd,
int nCmdShow
);private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] p=System.Diagnostics.Process.GetProcesses();
for(int i=0;i<p.Length;i++)
{
ShowWindow((int)p[i].MainWindowHandle,0);
}
}看看是不是你想要的效果。