I have a WebBrowser component that loads a webpage containing ActiveX content, the content has a loading screen which is a simple bar and a black background, when the content is loaded the background vanishes and another colour is seen, I'll set the component's dimensions so that the ActiveX content fits in perfectly. How do I detect if the content has loaded??
Asked
Active
Viewed 85 times
1 Answers
0
When the activex is loaded, the object element will raise the onreadystatechange event. The state codes are documented in Communicating Control Readiness.
See How to handle javascript events via WebBrowser control for WinForms for handling html element events.

Community
- 1
- 1

Sheng Jiang 蒋晟
- 15,125
- 2
- 28
- 46