StartAnimation Method

This method starts animating the system tray icon using images from the supplied imagelist.

Syntax

csSysTray[(index)].StartAnimation imgList, [Interval], [StartFrame]

The StartAnimation method syntax has these parts:

Part Description
csSysTray The SysTray control you are working with, or a control array of SysTray controls.
imgList Required. An imagelist containing icons to use in animating the system tray icon.
Interval Optional. The number of milliseconds to show each frame of the attached imagelist before proceeding to the next frame. This is also the amount of time paused between each frame. Default = 250 (250 milliseconds, 1/4 second)
StartFrame Optional. The frame in the imagelist where you wish to start the animation.  By default, the animation starts with the first frame.

Examples

Example 1 (Starting an Animation using Defaults)

csSysTray1.StartAnimation imglstDefault

Example 2 (Starting an Animation on frame 2)

csSysTray1.StartAnimation imglstDefault, ,2

Example 3 (Starting an Animation at double speed)

csSysTray1.StartAnimation imglstDefault, 125

Remarks

To stop animating a system tray icon, call the StopAnimation method.