I want to start the program without suspend. For example
private void button1_Click(object sender, EventArgs e)
{
test();
}
protected void test()
{
label1.Text = "";
for (int i = 0; i < 10; i++)
{
label1.Text += i;
Thread.Sleep(500);
}
}
When I run this program the form suspend while cycle the end.
How to make so that to run function test()
without suspend the form, for example to run as background?