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

msgbox

P: n/a
hi,
i am new to vb.net....

i want to call a messagebox wich hast a "YES" and "NO" button.
but if the user is pressing non of them,
the message box should automatically press "NO" after n seconds and close.

kind regards
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can´t do that with MsgBox or MessageBox.Show, you need a form with a
Timer control and implement call the Close method with the timer ticks.
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Zabby" <Za***@discussions.microsoft.com> escribió en el mensaje
news:03**********************************@microsof t.com...
hi,
i am new to vb.net....

i want to call a messagebox wich hast a "YES" and "NO" button.
but if the user is pressing non of them,
the message box should automatically press "NO" after n seconds and close.

kind regards

Nov 21 '05 #2

P: n/a
"Carlos J. Quintero [VB MVP]" <ca*****@NOSPAMsogecable.com> schrieb:
You can´t do that with MsgBox or MessageBox.Show, you need a form with a
Timer control and implement call the Close method with the timer ticks.


ACK. Some tips and tricks on how to implement your own messagebox can be
found here:

Implementing a message box with standard behavior
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=custommsgbox&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.