You're hacking the setting directly into the registry, but the application doesn't know this stuff changed. The WebBrowser control only loads the proxy information once, when the control is created.
You have to change the proxy information using the functions in WinInet.dll, example of which you can find
here[
^]. It's not a simple, straightforward thing to do.