sometimes, you might want to disable/enable the proxy via a program instead of clicking Tools->Options->Connections->LAN settings. popup 4 windows
How to do it?
basically the setting of the proxy is stored in Registry , all you need is to toggle the dword value of ProxyEnable.
"ProxyEnable"=dword:00000001 //1 means enable , 0 means disable
|here is a simple C# Code.|
private void EnableProxy(bool p)
since there is no built-in library for registry manipulation.
there is one open source library which do the same thing like C# library