I am trying to code a vb6 project and have been trying to add youtube to show in windowsmedia player. I found this code but does not seen to work

I've tried this and cannot make it work and textbox is set as keypress
Private Sub Command74_Click()
Dim VideoAddr As String
VideoAddr = Replace(URLAddr.Text, "/watch?v=", "/v/")
WindowsMediaPlayer1.URL = VideoAddr
End Sub

Try this in a current version of Visual Basic. Our office has expunged the dev system for reasons and I can no longer test out code for others.

Unless there's some online IDE I haven't found yet, it will be difficult to find support.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.