Respondido Windows Media Player

  • segunda-feira, 16 de abril de 2012 01:12
     
      Contém Código

    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

Todas as Respostas