Click here to Skip to main content
15,883,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir i have a registration form and these form has contain several control.....
when i put all controls value in run time and then click save button then all control values have saved in database.......but it has take some time it means 30 sec ,50 sec,and some time it takes 1 minute......let it takes 1 minute, then i want to show how many time it's taken and show process in progress bar and how many process has been complited in per sec and show % value in label control in every second......



Plz If u have solution then solve it.........
Posted
Updated 10-Aug-12 22:14pm
v2
Comments
[no name] 11-Aug-12 1:18am    
Okay... well you will have to compute how long the process will take before you start it. Then, show the progressbar and start the process. After that it's just a matter of updating the progressbar with the percentage of time it has taken.
Shambhoo kumar 27-Aug-12 2:44am    
Any one help me....

you can use a Background worker
 
Share this answer
 
Comments
Shambhoo kumar 16-Aug-12 1:54am    
but how sir ...?
plz show me....
Hi,

As Solution 1 suggest to use background worker. you can found good example of how % is displayed in UI.

Please Check Background worker[^]

Hope this helps you,

Thanks
-Amit Gajjar
 
Share this answer
 
Comments
Shambhoo kumar 18-Aug-12 1:20am    
Plz sir help me..
AmitGajjar 18-Aug-12 1:29am    
have you check the given link ? and have you tried anything ?
Shambhoo kumar 21-Aug-12 3:39am    
i had chaecked this link .but i don't understatnd how can solve These type of problem.
AmitGajjar 21-Aug-12 3:58am    
background worker can give you Report progress, follow the code given in the link and understand what they have done. you will get idea to display percentage.

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