How to do 2nd time leave textbox show messagebox
please help me
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 29, 2015, 2:38 AM EST
ali tuncerRank #1,499 · 1.1K reputationPosted Feb 13, 2016, 3:24 PM EST
Textbox has a leave event, check this link for more info:
Ranjit PowarRank #553 · 4.4K reputationPosted Feb 13, 2016, 5:34 PM EST
1. Declare global count in class as
int count=0;
2. In textbox leave event write below code
count++;
if(count==2)
{
MessageBox.Show("");
}
If it helps you select as correct answer.