Closing messagebox

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?
MojoolAsked:
Who is Participating?
 
DiscofishConnect With a Mentor Commented:
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
 
aravindtjConnect With a Mentor Commented:

Hai,
Get the message box handle.
close it.
that's alll,
0
 
tzxie2000Connect With a Mentor Commented:
if it is timer reqiure(after 2 second)
put a timer on the form and write
this.close()
in tick event
0
All Courses

From novice to tech pro — start learning today.