What's the easiest way to change the Windows proxy address using .NET code?

I found a code samples here:

http://sturla.simnet.is/post/2008/09/22/Enable-proxy-in-IE.aspx

But it's very complex and involves manipulating the Windows registry.

Is there an easier and less error-prone way of changing the proxy server address?

Answers


Code to do this can be found here, using the proper APIs rather than direct registry hacking


Need Your Help

App Store price drops and updates info

ios app-store itunes

I found a couple of websites which somehow collect App store price changes, updates, etc.

MySQL - add zeroes to a time based query where no result found

php mysql time gaps-and-islands

I have a query that prints out times and averages. The only problem is - if nothing happened in the time period of the 6 weeks that I'm running this for - it skips right over it... I need that 15 m...