Improve company productivity with a Business Account.Sign Up

x
?
Solved

Closing messagebox

Posted on 2004-08-27
6
Medium Priority
?
561 Views
Last Modified: 2008-01-09
hi everybody, i want to close a messagebox in my program created by my prog in some conditions, after 2 second (for example). how can i do that?
0
Comment
Question by:Mojool
4 Comments
 
LVL 2

Accepted Solution

by:
Discofish earned 128 total points
ID: 11913491
What programming langauge? What operating system?

On windows, you can call the DestroyWindow function and pass it the window's handle.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowFunctions/DestroyWindow.asp
0
 
LVL 22

Assisted Solution

by:cookre
cookre earned 124 total points
ID: 11913919
0
 
LVL 3

Assisted Solution

by:aravindtj
aravindtj earned 124 total points
ID: 11921615

Hai,
Get the message box handle.
close it.
that's alll,
0
 
LVL 5

Assisted Solution

by:tzxie2000
tzxie2000 earned 124 total points
ID: 12017066
if it is timer reqiure(after 2 second)
put a timer on the form and write
this.close()
in tick event
0

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this post we will learn different types of Android Layout and some basics of an Android App.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Simple Linear Regression
Six Sigma Control Plans

606 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question