Understanding the BackgroundWorker Component
Subject:   Threads
Date:   2006-09-13 02:56:26
From:   Adelio
What I am trying to code is an "activity" form.
i.e. like a progress bar BUT where it just moves left to right (and back again) a bit like KIT in Nightrider. I want to use this when I am calling stored procedures in my database in a seperate thread (no idea how long it will take to run and no chance of monitoring it's progress, it is either still running or finished).

I would run the SQL in a seperate thread and then display the activity form and it would just do it's thing, letting the user know that something is happening and then when the SQL has finished I tell the activity form to close.

What's the best way of doing it.