Solved

Closing messagebox

Posted on 2004-08-27
6
556 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Part One of the two-part Q&A series with MalwareTech.
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 fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

631 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