anijos, again, thanks for your help.
this code won't contribute to the solution I seek for because the "already running" process's window is not visible, hence no handle is found. I think the solution should be something like firing an event to the process in order to notify it should restore the non-visible window. do you know if such thing can be done?
User Profile
Collapse
-
Thanx anijos for your reply but I've already done that. if the window is minimized it works fine but in my case the window is not visible and the window's handle return from the call
IntPtr hWnd=processes[n].MainWindowHand le
is zero.
Thanx any way,
any other thoughts?
UvLeave a comment:
-
sending events to another process
Hi there,
I'm writing an application with forms. my main window can be hidden (minimize to a tray icon) like...Microsof t Outlook for example.
this application can run only one instance (again like outlook) - meaning that on initialization, I check if there is another process running and if so I exit from the new one.
in case the main window is hidden and the user tries to open the application again (from...
No activity results to display
Show More
Leave a comment: