I'm not sure if anyone has encountered this, but I have, and it baffled me. In the past, MsgBox() function should always display a modal message box, right?
Well, I'm using a timer in my VB
2008 code, and there is one part in the timer.Tick() event that's suposed to generate a message box. I always thought that the system would then pause and wait for users' reponse, but low and behold, the time starts up again, and it went back to the beginning of the timer.Tick() code section, thus generating mutiple instances of the message, and end up in an infinite loop.
I looked in VB
Help and also searched online too, and came up with nothing. All descriptions about MsgBox() function say that it's supposed to be modal.
If you have seen this, and know how to get around this problem, I would really appreciate your help on this. The alternative to this, that I could think of is to create my own message box, and each time that it is shown, then make sure the form is displayed as system modal. I would like to avoid this if there is a better and more elegant solution to this problem.
Thank you very much for all your help.