I think WPF is better designed for animations, but if you really want using Forms, it's quite doable. You can find some basic ideas in my past solution, see
how to do image animation[
^].
You ball animation is a simple case (and I happened to do something like this). Balls are rendered in
Control.OnPaint
using an instance of
Graphics
passes as a parameter to this method, based on current time and the calculated model. The rendering update is triggered by a call to the method
Control.Invalidate
.
—SA