I'm noticing that an IE object page doesn't completely load before its
DocumentComplet e event fires. For example, the following method fires once
an IE page loads:
private void onIEDocComplete 1(object pDisp, ref object url)
{
IE_Inst.Documen tComplete += new
SHDocVw.DWebBro wserEvents2_Doc umentCompleteEv entHandler(this .onIEDocComplet e2);
this.NavigateTo WebPage(url, this.noValue, this.noValue);
}
However, the page hasn't completely loaded. I usually see a white page in
IE. If I put a breakpoint on the first line in the above method and kill my
application, it unlocks IE and the page loads completely. I need the method
above to fire only after the page has completely loaded.
Trying to to do something like System.Threadin g.Thread.Sleep( 1000) only
prolongs the lock on IE and the page remains at the load state it was in
before the thread sleep. Any suggestions how I can get around this? Some
type of flush() or something?
Thanks,
Brett
DocumentComplet e event fires. For example, the following method fires once
an IE page loads:
private void onIEDocComplete 1(object pDisp, ref object url)
{
IE_Inst.Documen tComplete += new
SHDocVw.DWebBro wserEvents2_Doc umentCompleteEv entHandler(this .onIEDocComplet e2);
this.NavigateTo WebPage(url, this.noValue, this.noValue);
}
However, the page hasn't completely loaded. I usually see a white page in
IE. If I put a breakpoint on the first line in the above method and kill my
application, it unlocks IE and the page loads completely. I need the method
above to fire only after the page has completely loaded.
Trying to to do something like System.Threadin g.Thread.Sleep( 1000) only
prolongs the lock on IE and the page remains at the load state it was in
before the thread sleep. Any suggestions how I can get around this? Some
type of flush() or something?
Thanks,
Brett