I am using C # WebBrowser to show the Facebook login dialog for my desktop application. I am re-registered in the WebBrowser.DocumentCompleted event, and as soon as I get the expected URL, I will stop WebBrowser and close the dialog.
For some reason, after closing the dialog box, Internet Explorer opens unexpectedly.
I can only assume that it opens IE (which, by the way, is even my default browser), because the web server is returning the page, and my WebBrowser is already gone. This is true? Any idea how to prevent this?
Thanks!
Edit: When I close WebBrowser, it already contains HTML, which is displayed in IE.
source share