Visual Basic: Windows Controls

AutoPlay Property

See Also Example Applies To

Returns or sets a value which determines if the Animation control will begin to play an .avi file when the .avi file is loaded into the control.


object.Autoplay [= boolean]

The AutoPlay property syntax has these parts:

Part Description
object An object expression that evaluates to an Animation control.
boolean A Boolean expression specifying whether the Autoplay Property is enabled.


The settings for boolean are:

Setting Description
True The .avi file plays automatically in a continuous loop once it is loaded into the Animation control.
False An .avi file, once loaded, does not play until the Play method is used.

Data Type

Integer (Boolean)


An .avi file played using the Autoplay property will continue to repeat until Autoplay is set to False.