I'm using the new version of Windows Media Player 9.0 in a new app. I've downloaded the SDK and registered the PAI and I think I've doen everything I need to do to start the project. I add the WMP component to the toolbox and then add it to my form. The build goes fine. Problem is, everytime I run the form, I get an 'InvalidActiveXStateException' error and it highlights a piece of the pre-built code. Something like...
wmpPlayer.Enabled = True
In looking up the error, it says something like the object can't be enabled until it's instantiated. If I comment out that line, I can run the form and everything appears none the worse for wear. Any ideas what the problem is?
wmpPlayer.Enabled = True
In looking up the error, it says something like the object can't be enabled until it's instantiated. If I comment out that line, I can run the form and everything appears none the worse for wear. Any ideas what the problem is?