Stop WebBrowser MessageBoxes
Posted on 2005-04-19
Does anyone know how to stop the "Do you want to allow.." MessageBoxes appearing whenever you use 'cut', 'copy' & paste with the WebBrowser control?
For example, I'm allowing the user to paste content from the Clipboard directly into the control, though when you click the menu option, you get an annoying "Do you want to allow this page to paste information from your clipboard?" message.
I'm using the following code:
webBrowser1.ExecWB OLECMDID_PASTE, OLECMDEXECOPT_DONTPROMPTUSER
Can this message be suppressed, as I can't seem to find a property to achieve this?