But you should do it only if you are 100% sure of what you are doing. This is not a good thing to mess up with the registry.
There's another way - using InternetSetOption function from "wininet.dll".
I don't have any ready code to post here. It's a bit complicated so I can only propose the idea. Maybe other experts here can give you a copy and paste solution.
Hope this somehow helps.
Accepted Answer from Biffo
Date: 07/17/2003 08:47AM PDT Accepted Answer
InternetSetOption isn't complicated for this task, DChrome. Here is what my nitwit brother-in-law needs to do:
'Declare Options
Private Type INTERNET_PROXY_INFO
dwAccessType As Long
lpszProxy As Long
lpszProxyBypass As Long
End Type
Private Declare Function InternetSetOption Lib "wininet.dll" Alias "InternetSetOptionA" (ByVal hInternet As Long, ByVal dwOption As Long, ByRef lpBuffer As Any, ByVal dwBufferLength As Long) As Long
'On form add a command1 button
Private Sub Command1_Click()
Dim iRet As Long
Dim ProxyInfo As INTERNET_PROXY_INFO
iRet = InternetSetOption(0&, INTERNET_OPTION_PROXY, ProxyInfo, LenB(ProxyInfo))
'
If iRet <> 0 Then
MsgBox "Now Using Proxy Service.", vbInformation
Else
MsgBox "Error in Setting IE Proxy Service.", vbInformation
End If