0cool
0cool

Reputation: 683

implement multithreading

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

Answers (4)

Amsakanna
Amsakanna

Reputation: 12954

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

Upvotes: 1

RvdK
RvdK

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

Sam Holder
Sam Holder

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

Mitch Wheat
Mitch Wheat

Reputation: 300749

Take a look at the BackgroundWorker

Upvotes: 3

Related Questions