MikeB
6/4/2012 9:36:00 PM
Just use an HTA. You can store the HTA description in your app and launch
it on close. The HTA can have a timer to close itself or accept a button
press by the user. Mayayana can chime in here with respect to it being able
to delete itself after use (never tried it, so....)
"BeeJ" <nospam@spamnot.com> wrote in message
news:jqj9av$q4h$1@speranza.aioe.org...
> When my app closes I want to launch a self-closing "messagebox".
>
> How it would work.
> When my app is unloading this "messagebox" is launched.
> Has a message. One line (multi-line optional)
> Has a caption (optional)
> Has an OK (or close) button (optional or no button)
> My app closes entirely.
> The messagebox stays open for a preprogrammed time, say 5 seconds then
> closes.
> The messagebox does nothing more than display a message "after" my app
> closes. There is no response (e.g. OK button) from the messagebox to
> anything.
> I want to run only a Windows thing to display the message.
>
> How can this be done?
>
> I have been playing with
> Private Declare Function MessageBoxTimeout Lib "user32.dll" Alias
> "MessageBoxTimeoutA" ( _
> ByVal hwnd As Long, _
> ByVal lpText As String, _
> ByVal lpCaption As String, _
> ByVal uType As Long, _
> ByVal wLanguageId As Long, _
> ByVal dwMilliseconds As Long _
> ) As Long
>
> but I see no way to detach that from my app since my app will not be
> running after this message box is started (as I need it).
>
> --
> So where are we?
> Not the street address.
> Not the city.
> Not the country.
> Not the Earth.
> Not the Solar System.
> Not the Galaxy.
> Not the Universe.
> Not the Brane.
> So where is the Brane?
> Where are we?
>
> Life is but a dream!
>
>