Question

how to reload webbrowser ?

Asked by: albundy

hi all,

a new question for advanced programmers ;)

I have a webbrowser control
and I want to use the 'Display Inline Images' option for disabling the display of images...

for this I use this call function

 Call savestring(HKEY_USERS, "S-1-5-21-725345543-436374069-1708537768-1000\Software\Microsoft\Internet Explorer\Main", "Display Inline Images", "no")

All works good if I close my webbrowser and if I reopen it...anyway I don't want my software do it... can I tell the webbrowser to reload all settings and by the way load the new Display Inline Images parameter.

of course the webbrowser.refresh don't work ;)

hope someone will help me...

regards

al

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2002-08-14 at 03:07:48ID20336216
Tags

inline

,

reload

Topic

Visual Basic Programming

Participating Experts
5
Points
200
Comments
24

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Webbrower anchor tag retrieval
    Hello, I have a problem when retrieving a anchor 'a' tag with the twebbrowser document object. Specifically when the hyperlink contains a space - this gets converted to a '+' sign in the text source file (view source from browser) but when the string is viewed in delp...
  2. INET and WebBrower control not waiting correctly!!
    Hi, I have a little progam that takes a list of web pages, parses the wepage for key words and enters those words into a database (this is for a reporting tool for peoples sites). Now, my problem is, say my URL's are in an array WebArray() and I want to loop through the...
  3. capturing keyboard events and/or disabling keys in WebBr…
    Hi, I'm using a webbrower control in my app, but it has the annoying habit of capturing keyboard events (as an "MSIE" "browser"), which fouls up my program. How do I either disable the webbrower from capturing certain keyboard events (i.e., "...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: Richie_SimonettiPosted on 2002-08-14 at 10:33:33ID: 7220481

Save current setting somewhere else in your app
change at registry
Load your form with webbrowser
Restore registry on exit.
Changes mades at it takes ffect the next time you open the browser, not in this instance (just try to do it with IE properties dialog and you will see)
Cheers

 

by: albundyPosted on 2002-08-14 at 13:01:59ID: 7220835

I wnat to be able to do it on the fly.

the webbrowser is in the main form, I don't want to have to restart the app to take effect... IE does not restart, it should be possible :)

thx anyway

 

by: Richie_SimonettiPosted on 2002-08-14 at 13:36:35ID: 7220914

Well, take a look at this scenario:
You have an internet explorer window showing www.nowhere.com site with full of images.
you go to Tools, internet Options and change display images to not show them at all and push OK button from dialog.
Images from this site disappears? sure not but if you open a new window images are not showed.
Anyway, changes take effect the next time you use the browser or after you reload current page.

 

by: ArkPosted on 2002-08-14 at 19:38:53ID: 7221570

Add reference to Microsoft Internet Controls (shdocvw.dll)

Dim SHWnds As New ShellWindows
For Each wnd In SHWnds
    wnd.Navigate wnd.LocationURL
Next i
Set SHWnds = Nothing

Regards
Ark

 

by: ArkPosted on 2002-08-14 at 19:41:11ID: 7221575

Add reference to Microsoft Internet Controls (shdocvw.dll)

Dim SHWnds As New ShellWindows
For Each wnd In SHWnds
    wnd.Navigate wnd.LocationURL
Next i
Set SHWnds = Nothing

Regards
Ark

 

by: albundyPosted on 2002-08-15 at 03:49:29ID: 7222060

Richie_Simonetti << nope, if I hit F5 (refresh) the pictures doesn't shows


ark << I tried but it give me an error

here is my code
(I added the reference to Microsoft Internet Controls (shdocvw.dll))

Private Sub chk_img_Click()

'desactivate or reactivate images displaying
If chk_img.Value = 1 Then
 Call savestring(HKEY_USERS, "S-1-5-21-725345543-436374069-1708537768-1000\Software\Microsoft\Internet Explorer\Main", "Display Inline Images", "no")
Else
 Call savestring(HKEY_USERS, "S-1-5-21-725345543-436374069-1708537768-1000\Software\Microsoft\Internet Explorer\Main", "Display Inline Images", "yes")
End If

'refresh webbrowser (wb)
Dim SHWnds As New ShellWindows
For Each wb In SHWnds
   wb.Navigate wb.LocationURL
Next i
Set SHWnds = Nothing

End Sub

 

by: albundyPosted on 2002-08-15 at 04:07:47ID: 7222084

me again... :)

I tested this...

no error but don't work too :(

Dim SW As SHDocVw.ShellWindows
Dim IE As SHDocVw.InternetExplorer

Set SW = New ShellWindows
' loop through all the open IE windows
For Each IE In SW
   wb.Navigate wb.LocationURL
Next IE

 

by: ArkPosted on 2002-08-15 at 16:04:53ID: 7223638

For Each IE In SW
  wb.Navigate wb.LocationURL
Next IE

Should be

For Each IE In SW
  IE.Navigate IE.LocationURL
Next IE

Regards
Ark

 

by: albundyPosted on 2002-08-15 at 16:10:37ID: 7223643

same... don't work too :(

 

by: ArkPosted on 2002-08-15 at 16:15:53ID: 7223655

Does all windows refreshing?

 

by: ArkPosted on 2002-08-15 at 16:19:18ID: 7223660

Oops, sorry,missed this:
>>I have a webbrowser control<<
You need this behavior only for you WebBrowser control?

Regards
Ark

 

by: albundyPosted on 2002-08-15 at 16:20:50ID: 7223662

mmmmmmmmmmmm something strange....

when I click to disable images display with internet explorer open, this one refresh and don't display pictures but my webbrowser refresh but still displaying images...
perhaps I have to declare my webbrowser control in form load or things like that ?


cheers,

 

by: albundyPosted on 2002-08-15 at 16:26:17ID: 7223672

yep I only need it for this behavior

just for the wb webbrowser

 

by: albundyPosted on 2002-08-15 at 16:27:04ID: 7223673

me again....
anyway It doesn't matter if all my other instances of IE don't display images.

 

by: albundyPosted on 2002-08-15 at 16:28:22ID: 7223676

me again....
anyway It doesn't matter if all my other instances of IE don't display images.

 

by: albundyPosted on 2002-08-15 at 16:37:37ID: 7223689

me again....
anyway It doesn't matter if all my other instances of IE don't display images.

 

by: albundyPosted on 2002-08-15 at 16:41:52ID: 7223697

me again....
anyway It doesn't matter if all my other instances of IE don't display images.

 

by: ArkPosted on 2002-08-15 at 16:44:46ID: 7223698

Hi
Seems it read it from cache. Try to force reloading from site:
'No need loop through all windows
WebBrowser1.Navigate WebBrowser1.LocationURL,4

or, if this doesnt help:
WebBrowser1.Document.Body.InnerHTML = WebBrowser1.Document.Body.InnerHTML

Regards
Ark

 

by: albundyPosted on 2002-08-15 at 16:56:28ID: 7223709

same... :(

I tryed all...

 

by: albundyPosted on 2002-08-15 at 17:00:23ID: 7223712

would like me to send you sources ?

 

by: ArkPosted on 2002-08-15 at 17:29:33ID: 7223762

Hi
ark@fesma.ru

 

by: JordanMGregoryPosted on 2002-12-07 at 14:34:42ID: 7548627

I dont know if you've solved this yet, BUT..

I just happened to be struggling with the same problem, but quickly solved it when I realized that when the program is complied it works great, here's what I used:

In form load (or before you use the webbrowser control, turn the "display inline images" key to "no".

AFTER that page is done loading (in WebBrowser1_DocumentComplete) you can turn the "display inline images" key back to "yes" so that your other ie windows that might be opened, won't be opened without pictures.

This should work, I just got done testing, and remember it needs to be compiled to fully work.

-Jordan

 

by: DanRollinsPosted on 2003-03-10 at 16:50:45ID: 8107363

Hi albundy,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Richie_Simonetti's comment(s) as an answer.

albundy, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer

 

by: SpideyModPosted on 2003-03-22 at 17:01:17ID: 8188329

per recommendation

SpideyMod
Community Support Moderator @Experts Exchange

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...