Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Closing messagebox

Posted on 2004-08-27
6
Medium Priority
?
560 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
Six Sigma Control Plans
Introduction to Processes

877 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