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

Closing a msgbox w/o user interaction

P: n/a
Is there a way to display a message box and have it close after a certain amount of time w/o user interaction?
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"EvanK" <an*******@discussions.microsoft.com> schrieb
Is there a way to display a message box and have it close after a
certain amount of time w/o user interaction?


No, at least not easily. Making your own Form is easier.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

P: n/a
"EvanK" <an*******@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
Is there a way to display a message box and have it close after a certain
amount of time w/o user interaction?


As e'er I did with VB 6, I'd suggest you write you own message box
replacement.
First you hit this "timing" problem, then the need to have different
captions
on a varying number of buttons, then different, custom, images ... in the
end, it's easier to write your own to start with; you'll never look back.

Regards,
Phill W.
Nov 20 '05 #3

P: n/a
Hi Evan

I am almost sure I have seen a very *simple* solution for your exact
question

However when it was my problem I would, create a form and set a
forms.form.timer in it from where I on the the tick event would close the
form

(And set something as topmost in it).

Cor
Nov 20 '05 #4

P: n/a
* "=?Utf-8?B?RXZhbks=?=" <an*******@discussions.microsoft.com> scripsit:
Is there a way to display a message box and have it close after a
certain amount of time w/o user interaction?


Translate this VB6 sample to VB.NET:

<URL:http://www.mvps.org/vb/code/TimedMsg.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.