Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

webbrowser control - DocumentCompleted event doesn't fire on 'refresh'?

$
0
0
Hello,

I'm dynamically modifying some attributes of some htmlElements, using a webbrowser control, in the DocumentCompleted event... testing for WebBrowserReadyState.Complete so I know the page is completely loaded before making the modifications.

All the modifications I'm doing work and display as expected, however a call to webrowserControl.Refresh() or .Refresh(WebBrowserRefreshOption.Completely) reverts page back to original state... I'm assuming the DocumentCompleted event does not fire on a refresh? why? and how do I handle this to make sure my changes persist refreshes?

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>