"Sjaakie Helderhorst" <pr**********@tell.you> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Can you point me to a website or sample?
I used
http://msdn.microsoft.com/library/de...pplication.asp
to create this mess.
I've not read the whole article so i don't see why they are using a such
complicated procedure to do something that could be done with a few mouse
clicks. But it maybe allow you to have more control over WMP. I've had a
very quick look at your app but couldn't compile it as some references were
missing (probably because i have to follow the instructions given in your
link to make it work). I also don't really see the goal of your app: what
are you trying to do exactly?
However, if all that you want is embedd a WMP in your app, there is a simple
way to do it: create a VB windows application project, open your tool box,
right click on one panel of the tool box and choose Customize toolbox. Then
scroll down the COM components tab and check Windows Media Player. A new
icon will appear in your toolbox, just drag it on your application form and
that's it! You now have an embedded WMP. However, there is a known bug with
the WMP activex and VB: you'll have to move manually the line:
Me.AxWindowsMediaPlayer1.enabled = True
from the window form designer code to your New() function, put it just after
the InitializeComponents() call or your app won't start. You'll have to do
that each time you change your form design as this (buggy) code is
automatically generated by VS (this applies to VS 2002 and WMP 9, it has
maybe be fixed in the lattest versions).
I don't have any link on WMP and VB though as i am not a VB programmer but
you may find some with google (maybe on godotnet or some similar developper
community sites).