Force IE to re-read the registry

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anybody knows if there's possible to force Internet Explorer to re-read
the registry for Internet Options?

I have built an Windows Forms application which changes proxy-settings in
the registry
(HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings). The application is build in C# and I use SHDocVw to enumerate
through running instances of IE; foreach (InternetExplorer ie in
shellWindows) {... I've tried ie.Refresh() but it only reloaded the document.
I soon get nuts, I've scanned "all of the Internet" for answers... :o)

Please help!!!

Thanks in advance!
 
Hi,
Try this code:

lock(this)
{
object flag = (int)12;

object nullPointer = null;
IE.Navigate(URL, ref flag, ref nullPointer, ref
nullPointer, ref nullPointer);

}
In url paramter you can give the url of the same page.I am just making a
guess, hoping this might solve your probelm.

Thanks and Regards,
Manish Bafna.
MCP and MCTS.
 
Thanks Manish for your answer, but I'm sorry, It doesn't work... It only
reloads (refreshes) the document(s) inside the browser. It's the
"Tools\Internet Options\Connections\LAN settings\Proxy Server" I want to
reload (read proxy settings from registry) for each running instance of
ie-browsers.

/Karin
 
Back
Top