Version

WinActivityIndicator Animation

Animation on WinActivityIndicator™ can be enabled through different settings available on the control. You can set AnimationEnabled property to True or simply call the Start method to enable animation. The animation can be stopped by setting the AnimationEnabled property to False or calling the Stop method. Additionally, setting the AnimationSpeed to 0 will also disable the animation.

When stopped, the control will continue to paint the marquee in its current state. If the animation is started again, it will resume based on the current state. The Start and Stop methods have an overload that accepts a Boolean value and that if set to True resets the animation back to its initial state. Resetting the animation back to its initial state can also be achieved using the ResetAnimation method.

The following code assumes that you have an UltraActivityIndicator control dropped onto your form.

In Visual Basic:

' Start the Animation using the Animation Enabled property
Me.ultraActivityIndicator1.AnimationEnabled = True
' Start Animation using the Start method
' this.ultraActivityIndicator1.Start()
' Set a different speed for animation
Me.ultraActivityIndicator1.AnimationSpeed = 50
' Stop Animation and reset to its initial state
' this.ultraActivityIndicator1.Stop(true)
' Reset Animation to its intial state, when stopped and started again
Me.ultraActivityIndicator1.ResetAnimation()

In C#:

// Start the Animation using the Animation Enabled property
this.ultraActivityIndicator1.AnimationEnabled = true;
// Start Animation using the Start method
// this.ultraActivityIndicator1.Start();
// Set a different speed for animation
this.ultraActivityIndicator1.AnimationSpeed = 50;
// Stop Animation and reset to its initial state
// this.ultraActivityIndicator1.Stop(true);
// // Reset Animation to its intial state, when stopped and started again
this.ultraActivityIndicator1.ResetAnimation();
WinActivityIndicator WinActivityIndicator Animation 01.png