Windows Media Player

Discussion in 'Visual Basic .Net' started by DN Admin, Apr 15, 2012.

  1. DN Admin

    Staff Member

    Country:
    United States
    Joined:
    Aug 7, 2010
    Location:
    Joliet, IL U.S.A.
    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?

    <pre class="prettyprint lang-vb 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</pre>
    <br/>

    View the full article
     
    #1

Share This Page