implement multithreading
how to to implement multithreading where one thread updating UI and other one is reading t开发者_如何学Pythonhe database record in windows application
Any guidelines really appreciated...
Take a look at the BackgroundWorker
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.
You already have your UI thread running. Hence create a thread/BackgroundWorker for the db operation.
The backgroundworker has some convenient functions to do work without blocking the UI while it's possible to update the UI. MSDN
精彩评论