When i compile this function I get the error Cannot convert lambda
expression of type System.delegate because it is not a delegate type.
private void SetStatus(strin g status)
{
if (this.InvokeReq uired)
{
this.Invoke( status =SetStatus(stat us));
}
else
{
toolStripStatus Label1.Text = status;
}
}
Is it not possible to use the lambda expression in this case? Do I have
to declare a delegate and use it like the old way?
Comment