Answered Windows Media Player

  • Monday, April 16, 2012 1:12 AM
     
      Has Code

    Trying to setup some basic functions for the windows media player in a VB form. Its telling me playstate is readonly. anyway to change this?

    Private Sub AxWindowsMediaPlayer1_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles AxWindowsMediaPlayer1.PlayStateChange
            If Global_Variables.GameMusic = False Then
                AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsStopped
            End If
        End Sub

All Replies