private void OK_Click(object sender, EventArgs e) { if(UsernameTextBox.Text ="Manager" & PasswordTextBox.Text = "Maintenance") { frmMDI m=new frmMDI(); m.Show(); } else MessageBox.Show("Unauthorised User", "Authentication"); UsernameTextBox.Focus(); UsernameTextBox.SelectionStart = 0; }
if(UsernameTextBox.Text ="Manager" & PasswordTextBox.Text = "Maintenance")
if(UsernameTextBox.Text == "Manager" && PasswordTextBox.Text == "Maintenance")
private void OK_Click(object sender, EventArgs e) { if(UsernameTextBox.Text =="Manager" && PasswordTextBox.Text == "Maintenance") { frmMDI m=new frmMDI(); m.Show(); } else MessageBox.Show("Unauthorised User", "Authentication"); UsernameTextBox.Focus(); UsernameTextBox.SelectionStart = 0; }
if(UsernameTextBox.Text =
"Manager" & PasswordTextBox.Text =
"Maintenance")
if(UsernameTextBox.Text == "Manager" & PasswordTextBox.Text == "Maintenance")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)