Version

AnimationControl Class

Common Controls Animation Control
Syntax
'Declaration
 
Public Class AnimationControl 
   Inherits CommonControlBase
public class AnimationControl : CommonControlBase 
Remarks

The AnimationControl class is a wrapper for the Microsoft Common Controls Animation Control class. The control provides the ability to display AVIs without sound.

The AnimationSource property determines where the AVI is obtained. If set to AviFile, the FileName is used to obtain the avi file when the avi will be played. Other members of the AnimationType enum indicate that common system avi files should be used instead.

The Play and Stop methods are used to start and stop the animation respectively. If the AutoPlay property is set to true, the animation will start playing when the handle for the control is created. Also, whenever the state of the animation changes, the StateChanged event is invoked.

Note Since the class overrides members of the System.Windows.Forms.Control class that have link demands for unmanaged code rights, such as the WndProc and CreateParams, the class must have unmanaged code rights in order to be used. If these rights are not granted to the assembly and an instance of a derived instance of this control is sited on a form or usercontrol, a security exception is invoked when that form or usercontrol is about to load (i.e. during the jit of the containing class).

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also