Wie ändere ich die Internet Explorer Proxy Konfiguration? Also das geht ganz einfach. In nachfolgendem Quellcode wird gezeigt, wie's geht. Getestet unter Windows XP..... Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click ' Proxy aktvieren My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\" & _ "Microsoft\Windows\CurrentVersion\Internet Settings", _ "ProxyEnable", "00000001", _ Microsoft.Win32.RegistryValueKind.DWord) MsgBox("Proxy erfolgreich aktviert!", MsgBoxStyle.Information) End Sub Private Sub Button2_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button2.Click ' Proxy deaktvieren My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\" & _ "Microsoft\Windows\CurrentVersion\Internet Settings", _ "ProxyEnable", "00000000", _ Microsoft.Win32.RegistryValueKind.DWord) MsgBox("Proxy erfolgreich deaktviert!", MsgBoxStyle.Information) End Sub Private Sub Button3_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button3.Click ' IP:PORT des Proxyservers als String Dim wert As String = "192.168.0.1:8080" ' Proxy ändern My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\" & _ "Microsoft\Windows\CurrentVersion\Internet Settings", _ "ProxyServer", wert, _ Microsoft.Win32.RegistryValueKind.String) MsgBox("Proxy erfolgreich geändert!", MsgBoxStyle.Information) End Sub Hinweis: |