Hi.
I am using .NET 2.0 C#
I have a delegate:
and have a method which is called upon whenever we wish to do a procedure from a another thread or whatever:Code:public delegate void DoHandleUIStatus(string theMessageToDisplay, bool clearUpAfter);
I am getting this compiler error but no idea what it means/how to make it work: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; } }
No overload for 'DoUpdateUIAppStatus' matches delegate...
any ideas?





any chance of a regain? 
Reply With Quote