Returns or sets a Double value of the title’s current position, in seconds.
Syntax
MediaPlayer.CurrentPosition
Settings
The value of this property is a new position within the title, in seconds.
Remarks
Setting the CurrentPosition property at run time is similar to a seek operation, and changes the position to the specified point in the title.
Before attempting to set CurrentPosition, determine the length of the file in seconds by using Duration.
Before FileName is set, CurrentPosition returns zero.
The new value must be within the range specified by the SelectionStart and SelectionEnd properties.
The current position value displayed by the control's user interface can represent either seconds or frames. The DisplayMode property determines the units shown.
Example
This example shows how to use the CurrentPosition property to rewind a title after it has been stopped:
MediaPlayer1.Stop
MediaPlayer1.CurrentPosition = 0
© 1996-1998 Microsoft Corporation. All rights reserved.