delegate signature trouble[Resolved - my own mistake]
Hi.
I am using .NET 2.0 C#
I have a delegate:
Code:
public delegate void DoHandleUIStatus(string theMessageToDisplay, bool clearUpAfter);
and have a method which is called upon whenever we wish to do a procedure from a another thread or whatever:
Code:
public void DoUpdateUIAppStatus(string theMessageToDisplay, bool clearUpAfter)
{
if (this.lblStatus.InvokeRequired)
{
DoHandleUpdateCurrentStatus updateLabel = new DoHandleUpdateCurrentStatus(DoUpdateUIAppStatus);
this.Invoke(updateLabel, new object[] { theMessageToDisplay, clearUpAfter});
}
else
{
this.lblStatus.Text = theMessageToDisplay;
this.tmrClearUIStatusText.Enabled = clearUpAfter;
}
}
I am getting this compiler error but no idea what it means/how to make it work:
Quote:
No overload for 'DoUpdateUIAppStatus' matches delegate...
any ideas?
Re: delegate signature trouble
edit:
nevermind - found out the problem, my own! Calling the WRONG delegate.... duh
its 4am