Share via


Windows Media Player 11 SDK AxWindowsMediaPlayer.OpenPlaylistSwitch Event (VB and C#) 

Windows Media Player SDK banner art

Previous Next

AxWindowsMediaPlayer.OpenPlaylistSwitch Event (VB and C#)

The OpenPlaylistSwitch event occurs when a title on a DVD begins playing.

[Visual Basic]
Private Sub player_OpenPlaylistSwitch(
  sender As Object,
  e As _WMPOCXEvents_OpenPlaylistSwitchEvent
) Handles player.OpenPlaylistSwitch

[C#]
private void player_OpenPlaylistSwitch(
  object sender,
  _WMPOCXEvents_OpenPlaylistSwitchEvent e
)

Event Data

The handler associated with this event is of type AxWMPLib._WMPOCXEvents_OpenPlaylistSwitchEventHandler. This handler receives an argument of type AxWMPLib._WMPOCXEvents_OpenPlaylistSwitchEvent, which contains the following property related to this event.

Property Description
pItem System.Object

Object representing the title. You can cast this to an IWMPPlaylist interface to access it.

Requirements

Version: Windows Media Player 9 Series or later

Namespace: AxWMPLib

Assembly: AxInterop.WMPLib.dll (automatically generated by Visual Studio)

See Also

Previous Next