starting a thread

by pietman 20. December 2011 17:14

one way:

Thread oThread = new Thread(new ThreadStart(delegate()
{
    do_this_and_that();
}));
oThread.Start();

Tags:

[RESOLVED] Threw an exception of type 'Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException'

by pietman 19. December 2011 14:40

threw an exception of type 'Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException'

 

solution:

textBox1.Invoke(       new MethodInvoker(           delegate { textBox1.AppendText("."); }));

Tags:

Errors

DoEvents

by pietman 16. December 2011 14:46

System.Windows.Forms.Application.DoEvents();

Tags:

Threading

About ...

pietman celliersPietman Celliers
Bitlink  Ltd
bitlinkit.com