0

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...

4 Answers 4

3

Take a look at the BackgroundWorker

Sign up to request clarification or add additional context in comments.

Comments

2

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.

1 Comment

yeah it was. yours was slightly more compact, so +1 for you!
1

You already have your UI thread running. Hence create a thread/BackgroundWorker for the db operation.

Comments

0

The backgroundworker has some convenient functions to do work without blocking the UI while it's possible to update the UI. MSDN

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.