private void Button16_Click(object sender, EventArgs e) { Thread thread = new Thread(() => { Tools.OddEvenSort(); MessageBox.Show("Done"); }); thread.Start(); }