I have a program that contains some code using the WebBrowser control.

I need to know how to change IE connection settings via the registry in VB6.

Lets assume I have a text box [Text1.Text] and one command button. I want to be able to paste/type in a proxyort and hit the command button and have it set the proxy in the registry.

Thanks in advance!

I was told to search the forums for "Registry" in my last thread which wasn't helpful at all. Please provide me with instructions on how to do this.

This is the code i have so far - but i dont have any kind of module -
VB Code:
  1. WriteToRegistry "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer," & Text32.Text 'change proxy server
  2. WriteToRegistry "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD" 'enable proxies