private void button4_Click(object sender, EventArgs e) { Form46 f3 = new Form46(); this.Hide(); f3.Show(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "pakistan") { Form46 f46 = new Form46(); this.Close(); f46.Show(); } else { MessageBox.Show("You entered 'WRONG' Password", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error); } }