Hi Michael,
Thanks for posting in the community.
First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to play mp3 using
windowsmediaplayer by click a button on the vb6 form.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.
I think you can add a windows media player control onto the form and run
the code below.
Private Sub Command1_Click()
Me.WindowsMediaPlayer1.URL = "c:\test.mp3"
Me.WindowsMediaPlayer1.Controls.play
End Sub
Or you can run the shell command to run the windows mediaplayer.
Private Sub Command1_Click()
Shell "C:\Program Files\Windows Media Player\wmplayer.exe c:\test.mp3",
vbNormalFocus
End Sub
Please apply my suggestion above and let me know if it helps resolve your
problem.
Best 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.