Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Force IE to re-read the registry

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karin - 29 Jan 2007 15:14 GMT
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!
Manish Bafna - 30 Jan 2007 13:02 GMT
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.

> Does anybody knows if there's possible to force Internet Explorer to re-read
> the registry for Internet Options?
[quoted text clipped - 10 lines]
>
> Thanks in advance!
Karin - 30 Jan 2007 13:25 GMT
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

> Hi,
> Try this code:
[quoted text clipped - 29 lines]
> >
> > Thanks in advance!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.