c# auto close

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how to create this app:

- when you launches an app, it will start working. When it has finished, a
new form with info will be shown (with a button). Then, the app waits i.e. 5
secs for user. User within these 5 secs can click the button and the form
will be close (and the app exits) or after this time the form will close
automatically (and the app exits).

do I need threads? any ideas?
 
Yes.

On close of the main app form, open a new form.

That form starts a timer of 5 seconds

On 5 seconds elapse that form does a this.Close() or an Application.Exit if
you want everything to close assuming that isnt the only form open at this
stage.
 
Back
Top