Hi,
In below code I have explained the logic , how to implement that. If you need any clarifications do let me know.
int NoOfLoginAttempt = 0;
private void btnLogin_Click(object sender, EventArgs e)
{
if(FOUND )
{
if(Password is matched)
{
if(NoOfLoginAttempt ==3)
{
}
else
{
NoOfLoginAttempt++;
}
}
}
else
{
}
}
Best Regards
Muthuraja