Sorry to bother here again...

SendKeys would work great for what i need to do. However i'm having trouble opening a 3rd party program which is minimized to tray.

I've been testing the MS API... ShowWindow and SetForegroundWindow are both not working.

I'm using it this way...


Process[] processes = Process.GetProcessesByName("test");

foreach (Process p in processes) {

ShowWindow(p.Handle, 5);
}


Also tested with p.MainWindowHandle... any idea?

Thanks a lot in advance =D