private void button2_Click_1(object sender, EventArgs e) { this.Hide(); home1 ii = new home1(label4.Text); ii.ShowDialog(); }
private void button6_Click_1(object sender, EventArgs e) { DialogResult dialog = MessageBox.Show("Do you want to log out", "logout", MessageBoxButtons.YesNo, MessageBoxIcon.Error); if (dialog == DialogResult.Yes) { this.Hide(); home1 ii = new home1(label2.Text); ii.ShowDialog(); } else { this.Activate(); } }