Suppress the security warning bar when using the WebBrowser control.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top