I make an application where you receive notification if you have guessed something wrong. So on the basis of a windows notification I want to let the user know how many chances they have to guess the answer correctly. But the windows notification keeps repeating itself. I have already tried to make a break; behind it but that is not possible. Can anyone help me further?
This is my code
//status 1 of the hangman doll
if (status >= 1)
{
//gives notification another 9 chances
notifyIcon1.BalloonTipText = "1 kans minder, je hebt nog 9 kansen";
notifyIcon1.Icon = SystemIcons.Exclamation;
notifyIcon1.ShowBalloonTip(1000);
e.Graphics.DrawLine(new Pen(Color.Black, 2), 85, 190, 210, 190);
}
//status 2 of the hangman doll
if (status >= 2)
{
//gives notification another 8 chances
notifyIcon1.BalloonTipText = "1 kans minder, je hebt nog 8 kansen";
notifyIcon1.Icon = SystemIcons.Exclamation;
notifyIcon1.ShowBalloonTip(1000);
e.Graphics.DrawLine(new Pen(Color.Black, 2), 148, 190, 148, 50);
}
Aucun commentaire:
Enregistrer un commentaire