Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi everyone , I have a problem with Progressbar .
I created a function and it runs slow : ~30s .
How to show up progressbar when the program is processing function
How can i do that ?
Pls help !
Posted
Comments
Sergey Alexandrovich Kryukov 25-Apr-12 0:19am    
Please tag it: WPF? Forms? Silverlight? ASP.NET? What?
--SA

A progress bar won't help you to accelerate your function; it won't also help you to keep your UI responsive when some lengthy operation is being performed. You need to run your time-taking method in a separate thread. Further detail, including using of a progress bar, depends on the application type or a UI library which you did not bother to share with us yet.

—SA
 
Share this answer
 
Depending upon what kind of project you have, you might want to research using a BackgroundWorker[^]. You can find a number of Code Project Articles[^] to help you get started using one. This article[^] looks like a good place to start. Hope this helps.
 
Share this answer
 

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