1
Reply

login from using winform application

Carlos kambui

Carlos kambui

Jul 19 2016 7:11 AM
258
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)