I have a form that runs a batch task. (say every 15 minutes)
When it is kicked off it connects to the DB and then runs through all of the
things it is supposed to do.
The length of time to complete these tasks is unknown in advance.
If it finishes all of the tasks without error then the application exits.
The UI never appeared on screen at any time.
However, if there is an exception (such as not able to connect to DB) then
my global exception handler traps it and the screen appears with the error
message on it. This error is most likely to occur during initial setup when
someone is sitting at the server. But later on, there may not be anyone
looking at the server for days at a time. I would like to show the form for
5 minutes (or until a user clicks Close) and then have it automatically
close itself. If it does not get closed then dozens of copies of the form
could appear on screen until someone finally notices the problem. I want to
avoid this.
I am open for any advice on how to accomplish this.
Thanks!

Signature
Joe Fallon
Piotrek - 26 Feb 2005 13:42 GMT
If I understand well you should:
1. Create form that closes itself after 5 minutes (for example using Timer)
2. catch DB exception and show this form ?
and thats all ?

Signature
regards
piotrek