... variable in the Form class that will hold the animations:
(C#) Animator anims = new Animator();
2. In Form load (you could also do it elsewhere), add the animations:
anims.Add("myanimation", panel1.MakeAnimation("Width", 100));
3. Play the animation, for example in panel1.clicked event:
anims.Toggle("myanimation")
Your panel is now animated! Have fun!
If you have any problems/concerns, please contact me.