Threading problem

G

guru.rajiv

Hi friends

I need a simple threading sample program in C# windows application.

Actually i have an application in which i am fetching around 5000
records from database on button click. I want to display a waiting
image or text untill the application complete the processing of
fetch.

Can any one plz help me out here................

Thanks in advance.............


Rajiv jain
 
I

Ignacio Machin ( .NET/ C# MVP )

Hi friends

I need a simple threading sample program in C# windows application.

Actually i have an application in which i am fetching around 5000
records from database on button click. I want to display a waiting
image or text untill the application complete the processing of
fetch.

Can any one plz help me out here................

Thanks in advance.............

Rajiv jain

look into the archives, you will get a lot of pieces of code with the
entire solution.

basically you create a thread, start it. and in the UI you display
your waiting image. When the thread ends processing the date it inform
the UI using one of UI's controls (does not matter which control in
particular) using Control.Invoke.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top