|
|||||||
| Forum Home | Register | Members List | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||||
|
Junior Member
|
Why doesn't this call back function get called?
Basically here is the code surrounding the declaratoini callback method: Code:
webbrowser1 = new WebBrowser();
webbrowser1.LoadCompleted +=webbrowser1_LoadCompleted;
webbrowser1.Navigate(new Uri("http://www.google.com"));
The method, webbrowser1_LoadCompleted, is never called. I have put breakpoints in the callback method and the running program never reaches this method: Code:
void webbrowser1_LoadCompleted(object sender, NavigationEventArgs e)
{
.
.
.
}
|
||||||||
|
|
|
|
|
#3 | ||||||||
|
Junior Member
|
No, it is C# on a WPF application.
I have issues with the C# WebBrowser class I have a C# WPF application which uses a WebBrowser class. I have overwritten the LoadComplete method. The question I have is this. This method is supposed to be triggered when the class has completed a load, but , when I put a breakpoint on this method, it is called before the class visually has compleded a load. Because of this, the htmldata is not complete. Any ideas? Maybe there is a different method I should overide. LoadComplete might not be the best choice. Maybe there is something that is the same as a "display complete". |
||||||||
|
|
|
|
|
#4 | ||||||||
|
Moderator
Location: Netherlands |
Hmm… have you tried registering to the DocumentCompleted event instead of LoadCompleted?
__________________
I'm a web developer by profession, but a game developer by heart. Uh oh! The princess is in another signature! |
||||||||
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 09:27 PM.


















Linear Mode

