Carlos kambui

Carlos kambui

  • NA
  • 499
  • 125.1k

login from using winform application

Jul 19 2016 7:11 AM
below are my codes i want if you input wrong pasword it notify wrong password 
kindly help to rectify 
users = svcclient.Getuser(Convert.ToInt32(txtpassword.Text));
if (txtpassword.Text == users.user_pin)
{
//frontend.MDIfrontend front = new frontend.MDIfrontend();
//front.ShowDialog();
MessageBox.Show("Invalid Credentials!", "SoftByt info Tech");
}
else
{
frontend.MDIfrontend front = new frontend.MDIfrontend();
front.ShowDialog();
this.Dispose();
}
 

Answers (1)