Solved

Closing messagebox

Posted on 2004-08-27
6
527 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
6 Comments
 
LVL 2

Accepted Solution

by:
Discofish earned 32 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 31 total points
ID: 11913919
0
 
LVL 3

Assisted Solution

by:aravindtj
aravindtj earned 31 total points
ID: 11921615

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

Assisted Solution

by:tzxie2000
tzxie2000 earned 31 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
object oriented javascript web form 8 107
File.WriteAllLines problem at random C# ASP.NET 6 66
Counting documents in a Domino View 3 66
Turning python script into an applet 12 106
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now