0

I have a Windows app that basically calls other classes and within thise stored procedures and ultimately creates a csv file of a lot of info. I need a progress bar that just runs until its done so the user can see something is happening. I have scoured the internet and cant seem to get this to work. I just want the bar to start running on a button click. Why does this seem so difficult? The closest I got is just starting the bar in marquee but it wont "start" until after the object has been filled which does me no good, I need it to start while the object is being filled. This is being done in C#. Any ideas?

1 Answers1

0

You need to run the long running task in a separate thread so that the UI can update while the task runs.

See Windows Forms ProgressBar: Easiest way to start/stop marquee? for an example of setting this up.

Community
  • 1
  • 1
Taladon
  • 269
  • 1
  • 6
  • The solution presented in your link is not working, I already have myProgressBar.Style = ProgressBarStyle.Marquee; in my code. – user1809748 Apr 09 '13 at 15:00