I am using Microsoft Visual Studio 2010 C# .net 4.0
I have a webbrowser element. What i want to do is navigating via Webbrowser element with using proxy. How can i do that ? thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The browser control is just an instance of IE – it will use IE’s proxy settings. You can set these by playing with registry keys if you must do it in code.
See this: http://social.msdn.microsoft.com/forums/en-US/winforms/thread/da510380-9571-4fcd-a05f-b165ced45017/
Update: Looks like this can be done for just the control and not the entire machine. See this code sample for setting the proxy for just a single process – http://blogs.msdn.com/b/jpsanders/archive/2011/04/26/how-to-set-the-proxy-for-the-webbrowser-control-in-net.aspx