![]() |
|
[.NET] [TUT][Vb.Net] Use PROXY on WebBrowser [SOURCE] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [TUT][Vb.Net] Use PROXY on WebBrowser [SOURCE] (/showthread.php?tid=1610859) |
[TUT][Vb.Net] Use PROXY on WebBrowser [SOURCE] - Blinky94 - Aug 16, 2011 Hi all... i know that a tut of this is already posted, but not like this... HOW TO USE PROXY WITH A WEBBROWSER IN VB.NET? Very simple: FIRST Add in the namespace (above the public class form1) this: Quote:Import System.Runtime.InteropServices SECOND UNDER the public Class Form1 add this: Quote:#region "Using Proxy" OK, You have finished, this is the usage of this: Add 2 TextBoxes: In the TextBox1 you must put the IP of the proxy, in the TextBox2 you must put the port. This is the code: Quote:UseProxy(Textbox1.Text & ":" & Textbox2.Text) I've made this code by other tutorials, now i've found this code in my folders and i've thought to share this with the comunity. PLEASE, IF YOU ARE TRYING TO PUT ME -REP, TELL ME WHY BEFORE PLEASE! * - MelGrim - Aug 16, 2011 May I ask why you include the whole InteropServices Class just to import wininet.dll? Wouldn't it be better to just reference the wininet.dll and use it directly instead of loading extra functions and size into your program? * - StaTiX - Aug 16, 2011 (Aug 16, 2011 10:00 AM)MelGrim Wrote: May I ask why you include the whole InteropServices Class just to import wininet.dll? Wouldn't it be better to just reference the wininet.dll and use it directly instead of loading extra functions and size into your program?Yeah , no offence but you just copy+pasted it without even knowing what the code does * - ScreamX - Aug 16, 2011 (Aug 16, 2011 10:04 AM)StaTiX Wrote: Yeah , no offence but you just copy+pasted it without even knowing what the code does From this thread? https://hackforums.net/showthread.php?tid=1364841 * - StaTiX - Aug 16, 2011 (Aug 16, 2011 10:27 AM)DataCryption Wrote: From this thread? https://hackforums.net/showthread.php?tid=1364841doubt it , the code down there dosent have imports system.runtime.interopservices |