I am using C# and Windows Forms. I have a normal progress bar working fine in the program, but now I have another operation where the duration cannot be easily calculated. I would like to display a progress bar but don’t know the best way to start/stop the scrolling marquee. I was hoping for something as simple as setting the marquee speed and then having a start() and stop() but it doesn’t appear to be that simple. Do I have to run an empty loop in the background? How do I best do this? Thanks
Share
Use a progress bar with the style set to
Marquee. This represents an indeterminate progress bar.You can also use the
MarqueeAnimationSpeedproperty to set how long it will take the little block of color to animate across your progress bar.