多线程:
(new Thread(new ThreadStart(Method1))).Start();
(new Thread(new ParameterizedThreadStart(Method1))).Start(value);
(new Thread(delegate()
{
// TODO:
})).Start();
(new Thread(delegate(object value)
{
// TODO:
})).Start(value);
控件:
this.Invoke(Method1);
this.Invoke(Method1, value);
this.Invoke(new ThreadStart(delegate()
{
// TODO:
}));
this.Invoke(new Action<bool>(delegate(bool value)
{
// TODO:
}), value);
(new Thread(new ThreadStart(Method1))).Start();
(new Thread(new ParameterizedThreadStart(Method1))).Start(value);
(new Thread(delegate()
{
// TODO:
})).Start();
(new Thread(delegate(object value)
{
// TODO:
})).Start(value);
控件:
this.Invoke(Method1);
this.Invoke(Method1, value);
this.Invoke(new ThreadStart(delegate()
{
// TODO:
}));
this.Invoke(new Action<bool>(delegate(bool value)
{
// TODO:
}), value);