Click here to Skip to main content
14,601,062 members
Rate this:
Please Sign up or sign in to 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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100