Wednesday, July 15, 2009

using proxy with com webbrower C#

public void strproxy(string serverName,string port) { string key = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"; string proxy = serverName + ":" + port; RegistryKey RegKey = Registry.CurrentUser.OpenSubKey(key, true); RegKey.SetValue("ProxyServer", proxy); RegKey.SetValue("ProxyEnable", 1); }button click

No comments:

Post a Comment