Windows Media Player
Where can I find a tutorial/information on using Windows Media Player in VB 2005?
My particular question is with the URL - How do I code a "navigate" to an internet address and how do I "navigate" to an mp3 file that I want to include with the compiled application?
I can easily do this in VB6 but am lost with 2005.
Thanks
[329 byte] By [
Bennie] at [2007-12-16]
You can use the MediaPlayer control in VB 2005 pretty much the same way you did in VB6. Here's what I did:
1) Add the control to the Toolbox by right clicking the Toolbox, selecting "Choose Items...", picking the COM Components tab, and checking the box for the Windows Media Player control.
2) Drag/drop the Windows Media Control onto your form.
3) Play a music file by setting the Url property on the player, e.g.,
Player.URL = "http://www.microsoft.com/rockinmusic.mp3"That's all I had to do.-Sean
I am trying to control Windows MediaPlayer using .Net remoting. I created a Windows Service and was able to control MediaPlayer within the service. Next I created a remotable object and exposed that object through the Windows service and moved my MediaPlayer control into the remotable object.
Though I am able to see the properties and method returns I expect to see in the client when the remotable object is accessed, I do not appear to be able to control MediaPlayer. The MediaPlayer objects are all visible and have seemingly appropriate values but when I execute the play() method, I do not get sound but if I use the same code directly in the service, I do get sound.
Any help at all would be greatly appreciated.
Dale
Im not completely sure what you mean with the media player thing, but I can help you with browsing in visual basic...
WebBrowswer.Navigate(TextBox.Text)
Whatever the textbox is, is where the broswer will go. You can also use a string instead:
strSite = "www.msn.com"
WebBrowswer.Navigate(strSite)
I hope that helps you