private void button2_Click(object sender, EventArgs e) { Thread thread = new Thread(button1.Hide); thread.Start(); }