Media Player on WinForm

  • Thread starter Thread starter Steve Koon
  • Start date Start date
S

Steve Koon

I am dropping the Media Player control onto a WinForm and things work fine.
Is there a way to hide the Media Player controls?

Thanks,

Steve
 
* "Steve Koon said:
I am dropping the Media Player control onto a WinForm and things work fine.
Is there a way to hide the Media Player controls?

Did you try to place it behind another control?
 
If your media player control is wmp1 then

wmp.uiMode = "none"; // You can also use 'mini' and 'full'

Also there is a property called enableContextMenu (bool value) which will
allow or disallow the normal right-click context menu on the media player
control.

Hope that helps...

John Young
 
Steve said:
I am dropping the Media Player control onto a WinForm and things work
fine. Is there a way to hide the Media Player controls?

Have a look at the doc for the WMP ActiveX:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/controlreference.asp

and in particular the page concerning the player itself:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/playerobject.asp

As you can see, the uiMode property of the WMP ActiveX can have one of the
following values: invisible, none, mini, full or custom. I guess that the
one you want to use is "none".
 
Back
Top