Revolving Progress Bar during long operation...
Posted on 2006-06-07
I'm working on a Windows Forms project written in C# (.Net 2.0 - Visual Studio 2005) and I'm stuck on what seems like it should be a trivial task. I have a form that allows the user to select certain values and then these values are used to query a database and write the results to a CSV file. All of the information processing takes place in a separate thread from the UI and I would like to have something that shows that the program is doing work.
What I envision is a Progress Bar marquee that just "revolves" until the processing stops. Any kind of graphic really that just spins or rotates or whatever just so that something is graphically moving on the main form while the work is being done. I assume that the Progress Bar control would be the easiest to implement even though I don't really want to show the "Progress" of the program, I just want something that looks pretty and lets the user know that something is still happening.
Do I need to create a separate thread that has no purpose other than to change value of the ProgessBar so that it remains animated while the Program is running? It seems like there should be a better (easier?) way.
Thanks in advance.