Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Winforms WebBrowser tell when done Refreshing

I have a page that refreshes every 20 seconds and I need to know when it is done refreshing, the DocumentCompleted event does not fire when you refresh for some reason. Any ideas?

like image 585
James T Avatar asked Dec 15 '25 09:12

James T


1 Answers

You could try waiting until the WebBrowser.ReadyState property is set to complete. Alternatively, instead of Refresh()ing you could Navigate() to the current URL, which would cause the DocumentCompleted event to fire as you want.

like image 101
goric Avatar answered Dec 16 '25 22:12

goric



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!