x
Main Site login Signup

VB.net change the proxy of session and apply it

Hey, so I've been looking around but I could not find the answer and that is how do I set the proxy in a new session and how do I use the session to run in my WebControl Browser? Please do not send me over to any other posts or libabray I need the solution here. . . Here is the code I got from now:

 Dim prefs As WebPreferences = New WebPreferences()
 prefs.ProxyConfig = txtProxy.Text
 Dim session As WebSession = WebCore.CreateWebSession(prefs)
 Dim webcontrol As WebControl = New WebControl()
 webcontrol.WebSession = session
 Me.panWeb.Controls.Add(webcontrol)
 webcontrol.Dock = DockStyle.Fill
 webcontrol.Source = New Uri(txtURL.Text)
 webcontrol.Visible = True
asked Jan 07 at 06:24 PM avatar image sunes123 0
more ▼
(comments are locked)
10|1100 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.