Advertisement
User12345678910

Proxy on Web Browser in C#

Aug 1st, 2017
3,081
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2. using System.Windows.Forms;
  3. using SetProxy;
  4.  
  5. namespace Web_Browser_Proxy_use
  6. {
  7.     public partial class Form1 : Form
  8.     {
  9.         public Form1()
  10.         {
  11.             InitializeComponent();
  12.         }
  13.  
  14.         private void button2_Click(object sender, EventArgs e)
  15.         {
  16.             WinInetInterop.SetConnectionProxy(textBox2.Text);
  17.             label4.Text = textBox2.Text;
  18.         }
  19.  
  20.         private void button1_Click(object sender, EventArgs e)
  21.         {
  22.             webBrowser1.Url = new Uri(textBox1.Text);
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement