I'm using a Form with a WebBrowser control. When I get to an expected web page and click on a link, I get an expected dialog that comes from the web site.

The dialog is asking me a question that requires me to click a "Yes" or "No" button on it. I want my program to verify (or "realize") that the dialog is there and click one of the buttons. Since this dialog is not a part of my program, how can I do this?

Thank you