Hi ,
I tried to kill a windows process from my code. So I use
right after that, the windows app pop up a dialog box which let me to click "yes" or "no".

I wonder if there is any way to kill that dialog box Thank you very much!

Re: .NET Base Class Library How to kill an process and an dialog box pop up ?


You could use SendKeys.Send() if the dialog has the focus. If not, you'll have to find it with the EnumWindows() API function and give it the focus first. Process.Kill() terminates it immediately; that might be inadvisable...