Force IE to re-read the registry

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... :blush:)

Please help!!!

Thanks in advance!
 
G

Guest

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top