Using Timer To Close MsgBox?

cdeane

Member
How can I close out a MsgBox after 5 sec. of show time?
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
@Erel,
How is this possible?
I would have expected to need DoEvents or Agraham's Threading library as I thought the MsgBox would normally halt program execution.
Yet it is obvious here that the Tick events are still caught even though the program is in the middle of running App_Start.

Regards,
RandomCoder
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
Thanks for the response, I understand now.
 

mjcoon

Well-Known Member
Licensed User

Ah, I see now, rather too late, that I should have written a local wrapper Sub for MsgBox() calls that stopped my constantly-running timer while the message is shown, so that the program does not have to deal with the accumulated (and now useless) queued timer events afterwards!

Mike.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…