By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

Messagebox with timeout

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
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

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.

"Stanley" <xs******@gmail.com> schreef in bericht
news:11**********************@g14g2000cwa.googlegr oups.com...
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

Nov 21 '05 #2

P: n/a
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
Nov 21 '05 #3

P: n/a
"Stanley" <xs******@gmail.com> schrieb
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
Nov 21 '05 #4

P: n/a
"Armin Zingler" <az*******@freenet.de> schrieb:
Hi everyone! Is it possible to show up a messagebox with timeout,
so that it will auto select default button within certain time!


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


.... alternatively you can use p/invoke. A VB6 sample can be found here:

<URL:http://vb.mvps.org/samples/project.asp?id=TimedMsg>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #5

P: n/a
Hi,

You can find something about your topic at:
http://www.codeproject.com/cs/miscct...BoxTimeOut.asp

Regards,
Josip Habjan, Croatia
URL: www.habjansoftware.com

"Stanley" <xs******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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

Nov 21 '05 #6

P: n/a
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.
"Stanley" <xs******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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

Nov 21 '05 #7

P: n/a
Ok, Thanks all!

Nov 21 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.