I have an application with a PictureBox... it reads a record from the database to get a file path, then loads that image into the picturebox. When the image load is finished, it then is supposed to fire the LoadCompleted event and kick off further processing. Though the image loads fine and the program continues executing, the LoadCompleted event does not fire, so I run into problems down the road.

Here is where I configured the event:

Name:  EventConfig.jpg
Views: 603
Size:  38.3 KB

And here's the code for the event itself:

Code:
private void pictureBox1_LoadCompleted(object sender, AsyncCompletedEventArgs e)
{
    wrdReco.InitNewWord();
    wrdReco.AddPhrase(Word);
    wrdReco.Listen();

    lblResults.ForeColor = Color.White;
    lblResults.Text = "";

    wrdReco.StartListening();
}
I placed a break-point on the first line in the event handler, and it is never reached. Since the speech reco grammar is never created, errors occur a little later when I try to actually use the microphone.

Any ideas why the stupid event handler won't fire? It was working earlier, but the changes I made since shouldn't have affected the PictureBox control or its events.