MessageBox with timer

  • Thread starter Thread starter Elliot
  • Start date Start date
E

Elliot

Is it possible to show a MessageBox(Yes&No button) and assume "No" was
clicked if nothing was clicked 10 seconds after the MessageBox begins to
appear?
 
No, but you could easily write a dialog control with identical behaviour and
a timer function included.


--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Peter,

I don't have any answer on this.
However, isn't it bad that windows doesn't provide anything built-in
to do that?

Thanks
Kalpesh
 
Peter,

I am not sure whether I explained myself correctly.
And the goal has been addressed in the thread.

I just wanted to say that it is bad that windows didn't provide
anything so basic that people will have to write their own custom form
for this.
Imagine windows didn't provide any api for messagebox (just an
example)

The reason I say it is bad because, windows uses it in some of its
apps already
So, can't this be provided as an API instead?

My comments are not related to your solution. This is just my view of
things

Kalpesh
 
A message box has the responsibility of alerting the user and ensuring that
they acknowledge the message.

A message that pops up and dismisses itself after a period of time is a
tooltip.

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

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