2

I am searching for a method to set a proxy specifically to a form's webbrowser. Currently I can set a proxy that is limited to my current process. But I want to explore multiple connections and forms each using a specific proxy. Web requests wouldn't work since I the website I will be using it does constant streaming. So downloading a page and loading it in a webbrowser wont be a solid solution.

Also the method im using right now is just importing the internetsetoption API.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Drake
  • 3,851
  • 8
  • 39
  • 48

3 Answers3

1

Maybe using Gecko (Firefox) or WebKit (Chrome,Safari) would solve your problem

From this question: Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?

http://code.google.com/p/geckofx/

This is a nice .NET-wrapped version of Gecko

Community
  • 1
  • 1
Tim
  • 834
  • 2
  • 12
  • 31
0

In this case you can use DotNetBrowser (Chromium-based) library. It provides the ability to set custom proxy settings without modifing the system global proxy settings.

Here is an article :

https://dotnetbrowser.support.teamdev.com/support/solutions/articles/9000110051-configuring-proxy

And an example that demonstrates how to modify proxy settings without affecting global proxy settings.

https://dotnetbrowser.support.teamdev.com/support/solutions/articles/9000110853-configuring-proxy

Anastasiya
  • 11
  • 1
0

You cannot set proxy on per control basis. .NET WebBrowser control is a wrapper for IE which uses system settings. If you already have a method which changes proxy for your application, I'm guessing you're making a system wide proxy change.

I'm in wonder how you even managed to control it on process basis :)

Nikola Radosavljević
  • 6,871
  • 32
  • 44
  • Its not system wide, and I specified that I am using setinternetoption to apply the settings. – Drake Jul 16 '11 at 01:52