Here is a library for Win Forms animated controls:
Animated Eye Candy for Programmers[
^]
If you get an "Nunit" error, just delete the
UnitTests
project in Solution Explorer.
I think this piece of code in Form1 will be of interest to you:
private void RunAnimationOnPauseButton() {
AnimationAdapter pauseButtonAnimationAdaptor = new AnimationAdapter(this.buttonPause);
Animation pauseButtonAnimation = pauseButtonAnimationAdaptor.Animation;
Sprite imagesprite = new ImageSprite(Properties.Resources.smallGoldstar);
imagesprite.Add(0, 3000, Effects.Move(Corner.MiddleLeft, new Point(-20, 0),
Corner.MiddleRight, new Point(20, 0)));
imagesprite.Add(0, 3000, Effects.Rotate(0, 680));
pauseButtonAnimation.Add(0, imagesprite);
pauseButtonAnimation.Start();
}
Here is an article showing GIF animation in WPF:
GIF Animation in WPF[
^]
As you seem a bit lost I would also recommend reading "Getting Started with Graphics Programming":
Getting Started with Graphics Programming[
^]