Hello, I cant find answer for this trivial question
I want ProgressBar to indicate process while my application is querying the database.
I suppose it is not predictable how long process will take, so I use marquee ProgressBar
But can't find how to start it before the query and stop after.
Being just dropped to the form, ProgressBar is running all the time, hanging for the period while DB query is actually performed.
Playing with ProgressBar.Show and ProgressBar.Hide had no success: it is not running when shown.