Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How to run one form for 5 seconds and then close it?
Thanks
Posted
Updated 24-Aug-10 0:27am
v3

Try using a Timer control in the form.

Handle the Timer's Tick event and close the form.

And I assume you are talking about WinForms
 
Share this answer
 
This[^] should help you.

It will give you a shove in the right direction.
 
Share this answer
 
use multhreading give some time and you only mannually close the form
by using Application.exit(); method
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900