D
DBC User
Hi all,
I have a parent window and it has a button. When I press the button, it
starts a long process in the back ground and I show a WinForm (Dialog
box) on top of the parent windowto the user to let them know the back
ground processing is running.
I have 2 questions
1. How can I keep the dialog box always on top of the parent window? (I
do not want to use "stayontop" since it will always keep the dialog box
on top even if I switch to another window). I want to appear only when
I switch to application.
2. Since the background process is a long process, I need to close the
window when the program returns control back. Right now I am killing
the active form and it seems to closing the dialog box. Is it a correct
approach? Is it possible to find a Form with its name and then close
that form in c#, like c++
winhandle = FindWindow("title");
Thanks in advance.
DBC
I have a parent window and it has a button. When I press the button, it
starts a long process in the back ground and I show a WinForm (Dialog
box) on top of the parent windowto the user to let them know the back
ground processing is running.
I have 2 questions
1. How can I keep the dialog box always on top of the parent window? (I
do not want to use "stayontop" since it will always keep the dialog box
on top even if I switch to another window). I want to appear only when
I switch to application.
2. Since the background process is a long process, I need to close the
window when the program returns control back. Right now I am killing
the active form and it seems to closing the dialog box. Is it a correct
approach? Is it possible to find a Form with its name and then close
that form in c#, like c++
winhandle = FindWindow("title");
Thanks in advance.
DBC