C
Chuck Bowling
I've got a problem. Not sure if it's a problem in the code or in my
understanding.
I have a class that contains a delegate. The delegate is assigned to a
simple method in a form that assigns the values of a series of strings to an
instance of the label control sequentially.
// ******
public void DisplayWord(FlashWord word)
{
lblFlash.Text = word.Text;
Debug.WriteLine("DisplayWord method - " + lblFlash.Text);
}
// ******
the method appears to work fine. Each time the delegate invokes DisplayWord
it assigns the value of word.Text to the label. The Debug.WriteLine method
shows that the label contains the text. However, the text never shows up in
the window - at least not until the last word in the sequence.
Anybody have a clue as to what's going on?
understanding.
I have a class that contains a delegate. The delegate is assigned to a
simple method in a form that assigns the values of a series of strings to an
instance of the label control sequentially.
// ******
public void DisplayWord(FlashWord word)
{
lblFlash.Text = word.Text;
Debug.WriteLine("DisplayWord method - " + lblFlash.Text);
}
// ******
the method appears to work fine. Each time the delegate invokes DisplayWord
it assigns the value of word.Text to the label. The Debug.WriteLine method
shows that the label contains the text. However, the text never shows up in
the window - at least not until the last word in the sequence.
Anybody have a clue as to what's going on?