private static void ThreadSendKey(object o) { Thread.Sleep(1000); PatientShow ps = (PatientShow)o; ps.button2_Click(null, null); }
private void button4_Click(object sender, EventArgs e) { this.Hide(); Form PatientShow = new PatientShow(); PatientShow.ShowDialog(); this.Show(); }