B
Bob Altman
Hi all,
This is such a common scenario that I'm sure there must be some magic buried
in .Net to accomplish it... I have a program that wants to first check to
see if another instance of the same program is already running; if so, it
wants to ensure that the main window of the other instance displayed.
I can use a Mutex to detect the presence of another instance of the program,
but I can't find an easy way to set the other instance's main window state
to "normal" and bring it to the top of the Z order. Any suggestions?
This is such a common scenario that I'm sure there must be some magic buried
in .Net to accomplish it... I have a program that wants to first check to
see if another instance of the same program is already running; if so, it
wants to ensure that the main window of the other instance displayed.
I can use a Mutex to detect the presence of another instance of the program,
but I can't find an easy way to set the other instance's main window state
to "normal" and bring it to the top of the Z order. Any suggestions?