Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have an windows form based application which communicates with SQL server. The database is available on clouds.
I want to show progress bar when any operation is performed on database e.g. insert/update/delete...

Can any one please share an example to show background working with progress bar for long requests?
Posted

1 solution

For single operations, you can't do this.There is no guarantee how long for example an insert statement lasts.

You could use an estimate and show the elapsed time compared to the estimate but keep in mind that the actual execution time may differ greatly.

Typically an indeterminate progress bar is used in these kinds of situation showing the user that the operation is on-going but there is no exact estimate how long it will take.
 
Share this answer
 

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