Animation controls
Specifies the name of the AVI file that contains the animation to be associated with the Animation control. The AVI file must be an uncompressed file or a file compressed using run-length encoding (BI_RLE8). You cannot use an AVI file that has a sound channel; it will not display in the control.
To specify an AVI file for the control:
Click the browse (...) button next to the AnimationName field to select a file.
The AutoPlay property takes a string value. The following line sets the AnimationName property for a control called am_1:
am_1.AnimationName = "C:\work\avifiles\Search.AVI"