Hi Devron,
Do you mean the WindowsMediaplay ActiveX control?
What do you mean by capture the play or stop?
If you mean the key press on the AxWindowsMediaPlayer1, you may try to
e(AxWMPLib._WMPOCXEvents_KeyDownEvent),
if you mean the status of the windows media you may use the status of
AxWindowsMediaPlayer1.
Here is my code.
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
AxWindowsMediaPlayer1.URL = "c:\intro.wmv"
AxWindowsMediaPlayer1.Ctlcontrols.play()
End Sub
Private Sub AxWindowsMediaPlayer1_KeyDownEvent(ByVal sender As Object,
ByVal e As AxWMPLib._WMPOCXEvents_KeyDownEvent) Handles
AxWindowsMediaPlayer1.KeyDownEvent
MsgBox(e.nKeyCode.ToString())
MsgBox(AxWindowsMediaPlayer1.status.ToString())
End Sub
I look forward to hearing from you.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure!
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------