コード例 #1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            if(tbUsername.Text=="123" && tbPasword.Text=="123")

                {
                    frmDashBoard db = new frmDashBoard();

                    db.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Incorrect Password");
                }
        }
コード例 #2
0
 private void btndashboard_Click(object sender, EventArgs e)
 {
     this.Hide();
         frmDashBoard fd = new frmDashBoard();
         fd.Show();
 }