private void button17_Click(object sender, EventArgs e) { Thread thread = new Thread(() => { Tools.Quick_Sort2(0, arr.Length - 1); MessageBox.Show("Done"); }); thread.Start(); }