StateChange
A version of this page is also available for
4/8/2010
This event indicates that the Player state changed, such as from running to stopped.
Compatibility: ActiveMovie
Syntax
Private Sub object_StateChange(
ByVal oldState As Long,
ByVal newState As Long
)
Parameters
- object
Object expression that evaluates to an ActiveMovie Control.
- oldState
Previous state, before the change occurred.
- newState
Current state, after the change occurred.
Remarks
The ActiveMovie Control raises the StateChange event when the Player state changes, such as from stopped to running.
The current Player state appears in the CurrentState property. You can find the Player state flags in the CurrentState property documentation.
Settings
Following are possible settings for the oldState or newState parameters.
Setting | Value | Description |
---|---|---|
amvStopped |
0 |
The Player is stopped. |
amvPaused |
1 |
The Player is paused. |
amvRunning |
2 |
The Player is playing the multimedia file. |
Requirements
Windows Embedded CE | Windows CE 3.0 through Windows CE .NET 4.1 |