I have a window form with the property topmost =true.
Now I launch the process to view a pdf file with Process.Start(...),
set myform 's topmost to false and use SetWindowPos to bringtoFront
the window launched by process.
At this point all ok.
but....
Now How to know when the window is closed....??? because I want to
reset the topmost of myform to true;
C# C#
thanks
|
|
0
|
|
|
|
Reply
|
Attasc
|
11/26/2009 4:24:51 PM |
|
Attasc wrote:
> I have a window form with the property topmost =true.
> Now I launch the process to view a pdf file with Process.Start(...),
> set myform 's topmost to false and use SetWindowPos to bringtoFront
> the window launched by process.
>
> At this point all ok.
>
> but....
> Now How to know when the window is closed....??? because I want to
> reset the topmost of myform to true;
>
> C# C#
>
>
> thanks
Set the process' EnableRaisingEvents to true, and handle the Exited event.
--
Mike
|
|
0
|
|
|
|
Reply
|
Family
|
11/26/2009 4:33:04 PM
|
|