Solved

Closing messagebox

Posted on 2004-08-27
6
517 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

743 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

15 Experts available now in Live!

Get 1:1 Help Now