Home > Software engineering >  Consult the programming ideas
Consult the programming ideas

Time:10-19

In the Timer control or a loop, judge a variable, if the variable is equal to a certain value, will pop up a MessageBox, the question is: how to let the MessageBox play only once? Instead of always pop up?

CodePudding user response:

The timer stops, before in the pop-up window to open the timer

CodePudding user response:

In a loop, pop-up before stop, pop-up start, in a MessageBox will be blocked?

CodePudding user response:

refer to the second floor CrossGrave response:
in a loop, pop-up before stop, pop up, in a MessageBox be blocked?

MessageBox will block the ~

CodePudding user response:

Is equal to a certain value, after kiltimer, message box, then the value reset, no longer is equal to the value need to play box, and then start the timer

CodePudding user response:

Set a global Boolean variable

Conditions agreed, then buy 1, says it has had the

Play the dialog conditions combined with the variable


CodePudding user response:

reference 5 floor gz_qmc reply:
set a global Boolean variable

Conditions agreed, then buy 1, says it has had the

Play the conditions of the dialog with the variable


The advantage is, if you need to open, to where the need to reset the variable, and convenient
  • Related