If you have a window handle, you can call it ShowWindow()through the Win32 API. Then you can do:
ShowWindow(this.Handle, WindowShowStyle.Hide);
ShowWindow(this.Handle, WindowShowStyle.ShowNoActivate);
, , , :
Process[] procs = Process.GetProcesses();
IntPtr hWnd;
foreach(Process proc in procs)
{
if ((hWnd = proc.MainWindowHandle) != IntPtr.Zero)
{
Console.WriteLine("{0} : {1}", proc.ProcessName, hWnd);
}
}