Why doesn't this call back function get called?

Why doesn't this call back function get called?

completecomplete Posts: 2Questions: 0Answers: 0
edited October 2012 in General
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"));
[/code]

Should there be something more or are they in the wrong order?
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)
{
.
.
.

}

[/code]

I must be missing a reference. I do not know what one I am missing. Can you offer a suggestion?

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    No idea - doesn't really look related to DataTables, unless I'm missing something? This forum is specifically for DataTables related questions - not general Javascript ones (you'd be better served asking somewhere like StackOverflow).

    Allan
This discussion has been closed.