خیلی راحت :wise1:
به کد زیر نگاه کنید:
private decimal dec;
private void cmdRunOnNewWin32Thread_Click(object sender, System.EventArgs e)
{
Thread t = new Thread(new ThreadStart(test)); // Creates the new thread
t.Start();
for(long a=1;a<100000;a++)
{
dec += 200;
label1.Text = dec.ToString();
Application.DoEvents();
}
}
private void test()
{
for(long a=1;a<100000;a++)
{
dec += 300;
label2.Text = dec.ToString();
Application.DoEvents();
}
}