Click here to Skip to main content
15,885,739 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have windows application in which i need to show progressbar while data is being saved into database.I have button named btn_Submit on click of this data is saved while saving it takes time so i wat to show progressbar for mean time so that user get known that data is being saved.how i can do with this windows application.i am aware of backgroundworker but never used.can any one help me?

C#
private void btn_Submit_Click(object sender, EventArgs e)
{
\\\\\
Here goes my code......
}
Posted

1 solution

Exactly how to do this depends on how you are saving the information, but basically you need to move the database update code into a separate thread, so that the UI thread can remain responsive and show the user the progress. Have a look at a BackgroundWorker[^] - the link includes an example with a progress indicator.
 
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