Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to set proxy for all user of windows using c# code..
Sir i want to set proxy Server for all user of window not for current user i am using following code but its not browser not accept it.. please help ..


C#
private void RegistrySetting()
{
    RegistryKey registry = Registry.LocalMachine.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\\Internet Settings", true);
    registry.SetValue("ProxyEnable",1);
    registry.SetValue("ProxyServer", txtipaddress.Text + ":8080");
    ProcessStart();
    MessageBox.Show("Please Wait Installation In Process ");
}
Posted
Comments
Sergey Alexandrovich Kryukov 26-May-14 2:04am    
Didn't you forget to specify full path to the proxy server executable file?
—SA

1 solution

What should be done is described here: http://support.microsoft.com/kb/819961[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900