Cómo configurar el proxy para IE en C#
5 6 //Establecer ProxyEnable 7 rk.SetValue("ProxyEnable", 1);
8 //Establecer IP y puerto del proxy 9 rk.SetValue("ProxyServer", this.textBox1.Text.ToString( ) ":" this.textBox2.Text.ToString());
10textBox2.Text.ToString());
10 rk.Close();
11 Factory.ExecuteNonQuery("actualizar área de conjunto de IP='1' donde dirección= ' " str1 "'");
12 this.dataGridView1.DataSource = Factory.GetDataTable("seleccionar * de ip");
13 MessageBox.Show("¡Éxito!!") ;14 }15 16 botón de anulación privada4_Click(remitente del objeto, EventArgs e)17 {18 // Abra la clave de registro 19 Microsoft.Win32.RegistryKey rk = Microsoft .Win32.Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Internet Settings", verdadero);
20 21 //Establecer ProxyEnable 22 rk.SetValue("ProxyEnable", 0) ;23 rk.Cerrar();