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.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"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
jRegistryKey link
1 comment:
Alterations Boutique offers professional suit alterations, dress alterations, and wedding dress alterations in London. Their expert tailors provide precision adjustments to ensure a perfect fit for every garment, whether it's a suit, dress, or bridal gown. With personalized service and years of experience, they are dedicated to delivering the highest quality alterations. For more details, visit Alterations Boutique. proxysite.guru
Post a Comment