Click here to Skip to main content
15,912,507 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one Requirement add record in data base while adding data base i want to show progress bar to user with file name which one insert in data base. data insert in background thread

What I have tried:

i user back ground thread but it not working properly
Posted
Updated 18-Sep-16 20:39pm

1 solution

I know its a bit of a long read - but try this Task.Run vs BackgroundWorker, Round 1: The Basic Pattern[^] - I would have suggested using a BackgroundWorker, but, this article suggests why Task.Run() is better and shows how to use - look at 'Reporting progress' in the left hand side menu for example
 
Share this answer
 
Comments
CPallini 19-Sep-16 3:07am    
5.

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