rlranft rlranft - 1 year ago 184
C# Question

Allow System.Windows.Forms.WebBrowser to run javascript

Seriously - read the question all the way through before attempting to answer it. "Use a different browser" doesn't answer this question.

The question is this: How do I get a System.Windows.Forms.WebBrowser control to display a web page that has Javascript embedded in it when I have no control over the incoming page?
I've already seen people suggest adding registry values for IE emulation (Allowing javascript to run on a windows form web browser) and altering the script settings in Internet Options/Security.
Internet security options

I've done that already.

So, here's the test - use a System.Windows.Forms.WebBrowser control to access www.hulu.com.

Still getting this

And we're still getting this.

Any other ideas?

Answer Source

Possible approaches:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download