Ich verzweifele noch mal an diesen
delegate und
Invoke.
Code:
private void SetStatusText(string Text)
{
lblStatusText.Text = Text;
this.Update();
}
void ThreadProc()
{
try
{
for (int i = 0; i < 100000; i++)
{
Invoke(new MethodInvoker(thread_Event));
Thread.Sleep(0);
}
}
finally
{
Invoke(SetStatusText(resManager.GetString("ThreadStatusFinish")));
}
}
Will er auch nicht:
Zitat:
The best overloaded method match for 'System.Windows.Forms.Control.Invoke(System.Delega te)' has some invalid arguments