title: Windows Media Player PlayStateChange
body: <p>I am using Visual Basic.net and the Windows Media Player control. Is it possible to determine the Object when the PlayStateChange event occurs.</p>
  
  <p>Here is the sub:</p>
  
  <pre><code>PlayStateChange(NewState As Integer)
  </code></pre>
  
  <p>There is no Sender Object in the sub. Is it possible to get the Object by overriding the sub or by another way?</p>
  
  <p>Thanks in advance</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Here is the code I used to use the control:</p>
  
  <pre><code>    Public WithEvents MediaPlayerObject As WindowsMediaPlayer = New WindowsMediaPlayer
  </code></pre>