The answer is that you probably can, but most likely it will be an absurdly complicated process. You can connect to the CALLWNDPROCRET Windows notification chain, which allows you to receive events (for example, creating a dialog) before they are processed by the webbrowser control. I used this before to do things like suppress the "untrusted certificate" warning dialog box, however I would not recommend going that route unless you have a completely different choice.
source
share