Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

In my app, I read/parse data that takes some time. While that process is going on I want to display a message on screen indicating the process going on. I beileve I got to use Thread for it, but don't get an idea how to use and implement it.The calling method may throw exception or so.

Any idea/tip on how to achieve the task. Any help is highly appreciated.

Thanks
Posted

1 solution

You might want to look at Background worker[^] for this purpose.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 2-Feb-11 10:49am    
Good call! 5+
All Time Programming 3-Feb-11 5:20am    
I had a look at the BackgroundWorker. My requirement is I don't want any progress bar or so. Only a kind of Modal dialog with text like "Connecting" or "Retrieving..." while a method is executing. Once the method is executed, the dialog goes away. That's it. Modal dialog because, user know somethign is going on and he can't access any other form resources.

I added backgroundWorker on my form, but didn't get an idea of how to display a dialog with message and call the method and show the dialog till its done.

Can any body guide me for hte above.

Thanks

Sergey Alexandrovich Kryukov 2-Feb-11 13:14pm    
Yes, OP might :-) - my 5.
--SA
All Time Programming 9-Feb-11 5:37am    
Thanks Manas. It helped me gain what it wanted to do. Thanks once again.
Manas Bhardwaj 9-Feb-11 6:09am    
glad it helped you :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900