I'm trying to display a message in a label which is coming from a WCF callback. My label is in a windows form application. The problem is the label isn't getting set when the callback is fired. I tried to use a Message Box instead of label and it works. There is nothing much of code to show. Here is the callback function.
public void GetData(string message)
{
label1.Text = message; // This doesn't work
MessageBox.Show(message); // This works fine
}
Can anyone tell why a label is not getting set inside a callback function.