title: How to display which file is playing by Media Player from Playlist in vb.net ?
body: <p>I am working on vb.net application of video player using AxWindowsMediaPlayer</p>
  
  <p>I have successfully created Playlist of bunch video files and it plays perfect.</p>
  
  <p>I have more than 2 videos in the playlist.</p>
  
  <p>I want to display message box which that file name when next video file get played from playlist.</p>
  
  <p>Which event should I use ? and how to display which file is playing currently ? </p>
  
  <p>I have used below code for creating playlist.</p>
  
  <pre><code>    Private Sub PlayVideos()
  
          Try
  
  
          AxWindowsMediaPlayer1.uiMode = "full"
  
  
          Dim Playlist As IWMPPlaylist = AxWindowsMediaPlayer1.playlistCollection.newPlaylist("Playlist1")
  
              Dim VideoFile1 As WMPLib.IWMPMedia3 =  AxWindowsMediaPlayer1.newMedia(Path1.Trim)
          Playlist.appendItem(VideoFile1)
  
              Dim VideoFile2 As WMPLib.IWMPMedia3 = AxWindowsMediaPlayer1.newMedia(Path2.Trim)
          Playlist.appendItem(VideoFile2)
  
    AxWindowsMediaPlayer1.currentPlaylist = Playlist
  
  
          Catch ex As Exception
          End Try
  
      End Sub
  </code></pre>