Пример #1
0
        private void btnBH_Click(object sender, EventArgs e)
        {
            HomeForm home = new HomeForm();

            this.Hide();
            home.Show();
        }
Пример #2
0
 private void Login()
 {
     if (txtUserName.Text == "moh" && txtPassword.Text == "123")
     {
         this.Hide();
         HomeForm home = new HomeForm();
         home.Show();
     }
     else
     {
         MessageBox.Show("Invalide login ...");
     }
 }