private void SetTxtAction(string t)
{
if (this.txtAction.InvokeRequired)
{
MyDelegates.setText d = new MyDelegates.setText(this.SetTxtAction);
this.txtAction.Invoke(d, new object[] { t });
}
else
{
this.txtAction.Text = t;
}
}
My question is if there are any performance or other differences if I would use...
this.Invoke(d, new object[] { t });
*** is there a way to format the text as code when posting code in this forum
Thx
Adriaan