Messagebox with timeout

  • Thread starter Thread starter Stanley
  • Start date Start date
S

Stanley

Hi everyone! Is it possible to show up a messagebox with timeout, so
that it will auto select default button within certain time! Everyone
please help!! Thanks

Regards,
Stanley
 
Stanley said:
Hi everyone! Is it possible to show up a messagebox with timeout,
so that it will auto select default button within certain time!
Everyone please help!! Thanks


No. You can create your own Form and use it instead.

Armin
 
Hi I think you'll have to create your own messagebox for that (a normal form
and use it's form.showialog method)

Hth Greetz Peter
 
Stanley,

Create your own messagebox from a form and show that with showdialog. Than
it is very easy to do what you ask.

I hope this helps,

Cor
 
If using XP, another alternative is the MessageBoxTimeout function.

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 lngMilliseconds As Long) As Long

Same as MessageBoxEx but with an additional timeout parameter.

You'll have to check for the behavior you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top