3

To change Proxy server I have to go to IE->Internet Options->LAN Settings and click on "Use a proxy server for your LAN". I am sure there is some way of doing that by code. Does anybody has any idea how to do it (C#)?

Thanks a lot.

Sincerely, Vlad

2 Answers 2

2

What if you were to make a batch file, and then create a shortcut to it on your desktop, and then hotlink to it with something like ctrl+alt+n

And the batch looked like this:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] "ProxyEnable"=dword:00000001 "ProxyServer"="10.22.40.6:3128"

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks a lot. That is it. I did not know that setting is in registry. I can write any code to change that flag. Vlad.
Glad I could be of help. Take care
0

If you want to setup the proxy for use by your code you can set it via the GlobalProxySelection.Select property.

However Microsoft does not recommend setting the proxy manually and recommends always using the default proxy.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.