Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox2.Text.Equals("Heman"))
            {
                this.Hide();
                HomePage hp = new HomePage();

                hp.Show();

            }
            else
                MessageBox.Show("Wrong Password. Please Enter Correct Password");
        }
Пример #2
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     this.Hide();
     HomePage h1 = new HomePage();
     h1.Show();
 }