Reputation: 683
how to to implement multithreading where one thread updating UI and other one is reading the database record in windows application
Any guidelines really appreciated...
Upvotes: 0
Views: 243
Reputation: 12954
You already have your UI thread running. Hence create a thread/BackgroundWorker for the db operation.
Upvotes: 1
Reputation: 19800
The backgroundworker has some convenient functions to do work without blocking the UI while it's possible to update the UI. MSDN
Upvotes: 0
Reputation: 32954
you should look at the BackgroundWorker.
This will allow you to start the database operations on a background thread, so that your UI is not locked and also to report progress back to the main thread so you can update the UI with the results.
Upvotes: 2