Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

How can I create auto close msgbox?

What I have tried:

I tried popup msgbox but timer not function, still show me next and next popup windows.

CreateObject("WScript.Shell").Popup("Krok 1/3 *Data přijata*, zahajuji krok na 2/3 *Export dat /// vyčkejte", 1, "Úspěch")
Posted
Updated 30-May-19 2:22am

1 solution

You can't. MessageBoxes are Modal: they prevent further processing until the user has closed the dialog. That includes all message processing, which means your timer ticks are not processed until after the box had been removed.

The only way to do that would be to create your own form that simulates a MessageBox and which automatically times itself out, and use that instead.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900