Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Hi I have the following code that i have found but when i try and use it in Visual Basic 2008 Express it doesnt like it because the code is obviously from an older version of VB.

 

Is there a really really nice person out there that would like to convert it for use in 2008 ;)

 

Thanks Dan

 

 Private Sub Command1_Click()
Set Sh &H3D CreateObject("WScript.Shell")

' Use a proxy server for your LAN

Sh.RegWrite
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Internet
Settings\ProxyEnable", "1"

' Do not use proxy server for addresses beginning with(  is the
"Bypass proxy server for local addresses" option.
Sh.RegWrite
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Internet
Settings\ProxyOverride", "1.1.1.1;"

' Address and port of proxy server
Sh.RegWrite
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Internet
Settings\ProxyServer", "1.1.1.1:80"

End Sub

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...