private void button1_Click(object sender, EventArgs e) { addpaatient pt = new addpaatient(); this.Hide(); pt.ShowDialog(); this.Close(); }