Yes you cant call the enabled property until after the Activex Control has been instantiated. Instantiation partly includes setting the OcxState property of the control like...
Again, you need to set the OcxState property of the Activex control during the instantiation of the control. This is done automatically for you if you first add the mediaplayer control to the visual studio tool box then draw the contol onto the screen. You will notice that visual studio adds the code to the initializecomponent() method of the form.
Im guessing that you tried to just instantiate an instance of the player object yourself without using the toolbox?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.