Suppress the security warning bar when using the WebBrowser control.

  • Thread starter Thread starter Sin Jeong-hun
  • Start date Start date
S

Sin Jeong-hun

Hello.

I created a WPF application. It has a WebBrowser control on it, and
XML files are shown on that control being transformed by an XSLT.
Unfortunately, the XSLT contains some JavaScript. Every time I load an
XML on the WebBrowser, I see a yellow security warning bar on top. I
have to right click it, then choose allow then click yes. This is
really annoying, and the JavaScript is not dangerous at all. It only
changes the style of some element dynamically.

Is there any sure way to suppress the yellow bar? I had searched
Google, but the suggested Web Mark Of Trust did not seem to work.
Since the program will be used by others, it is not feasible to lower
the security settings of IE itself.

If there is no way to do so, is there any other component that I can
use to display XML files using XSLT?

Thank you.
 
Back
Top