You are on page 1of 2

private void button1_Click(object sender, EventArgs e)

{
if ((this.txtUser.Text == "nhom23vdk") && (this.txtPass.Text == "123456"))
{
Form2 f = new Form2();
f.Show();
}
else
{
MessageBox.Show("Không đúng tên người dùng / mật khẩu!!!", "Thông báo");
this.txtUser.Focus();
}

private void button3_Click(object sender, EventArgs e)


{

DialogResult traloi;
traloi = MessageBox.Show("Chắc không?", "Trả lời",
MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (traloi == DialogResult.OK)
{
Application.Exit();
}
else this.txtUser.Focus();
}

private void label4_Click(object sender, EventArgs e)


{

private void chkNho_CheckedChanged(object sender, EventArgs e)


{

}
}
}

You might also like