473,395 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Updating WebBrowser without full refresh

Hello,

I'm developing an application in C# using the WebBrowser control and
need to toggle images off and on. After some digging, I found the
appropriate registry key that needs to be set and then discovered how
to inform other windows that a change has taken place via an Interop
call to SendMessageTimeout using the flag WM_SETTINGCHANGE.

After all of this, the WebBrowser control still requires a full refresh
to reflect the change that I made to the registry. This messes up
javascript that I have running on the displayed page and it doesn't
seem to happen in Internet Explorer. How can I get the WebBrowser
control to toggle images without requiring a full refresh?

Thanks!
Jeff

Apr 27 '06 #1
2 1853
As far as I know IE itself needs a full reload in order for this setting to
be applied so I would think you will not find a way in the web browser
control.

It might be worth writing a test page that is written out by javascript to
see if you re-write the page through javascript whether or not it applies
the behavior.

Cheers,

Greg
<je************@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hello,

I'm developing an application in C# using the WebBrowser control and
need to toggle images off and on. After some digging, I found the
appropriate registry key that needs to be set and then discovered how
to inform other windows that a change has taken place via an Interop
call to SendMessageTimeout using the flag WM_SETTINGCHANGE.

After all of this, the WebBrowser control still requires a full refresh
to reflect the change that I made to the registry. This messes up
javascript that I have running on the displayed page and it doesn't
seem to happen in Internet Explorer. How can I get the WebBrowser
control to toggle images without requiring a full refresh?

Thanks!
Jeff

Apr 28 '06 #2
You are indeed correct - IE does need a full reload for the changes to
take effect. Firefox appears to behave similarly.

Do you have any ideas on how I could do this? I noticed that if I go
through all of the images and set their src attributes to "" they
disappear. That's not at all ideal, but I suppose it's workable.

-Jeff

May 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hennie de Nooijer | last post by:
Hi, Currently we're a building a metadatadriven datawarehouse in SQL Server 2000. We're investigating the possibility of the updating tables with enormeous number of updates and insert and the...
9
by: Jervin Justin | last post by:
Hi, I've been having this problem for some time with Web Forms: I have a web app that sends data to a service when the user presses a button. Based on the data, the server will send several...
0
by: cweeks | last post by:
>From the MSDN documentation for WebBroswer.Refresh(): "The WebBrowser control stores Web pages from recently visited sites in a cache on the local hard disk. Each page can specify an expiration...
2
by: Ryan Ramsey | last post by:
I have been chasing this one down for a week and have narrowed it down to a machine issue. I have the following code: webBrowser.Navigate(http://finao.net/post_dkp.php?database=40); Basically...
1
by: JP2006 | last post by:
I'm trying to write a control that will take a screen capture of a particular website when a user submits a form in a web application; one of the form fields is for a URL - the control needs to get...
2
by: Zytan | last post by:
I just got a TargetInvocationException from a WebBrowser control, after calling WebBrowser.Document.Write(text), which (internally) calls System.Windows.Forms.HtmlDocument.Write(String text),...
4
by: Rob | last post by:
Hi, I have a master page that contains a table layout. The contentplaceholder is located in one of the table cells. With frames technology it was possible for hyperlinks to load the linked pages...
0
by: lazycoder207 | last post by:
hi i have a webbrowser control and textbox control in a form ..when application is starting up, webbrowser loads a page on my drive..that page links to a css style sheet..which has p {...
4
by: David | last post by:
I'm using the AxSHDocVw.WebBrowser control to download data from a webpage at work (it's an internal page on my company's intranet). The page produces a runtime error after a while and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.