full screen media player

Is there a code to make windows media player go into full screen apart from right clicking on the player?

What i want to do is have a button that makes the player go into full screen is it possible?

[200 byte] By [TJ2007] at [2007-12-25]
# 1

is this for the embedded WMP (in other words, added the COM component in your project)? if so, there is a command in the object to make it full screen, you would have to read the docs for that. I think its:

theWMPObject.fullscreen = true

to make it full screen. The "theWMPObject" is the object of WMP you added in your application (embedded in it)

ahmedilyas at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

and is there a way to prevent de control from going into full screen mode or disable the full screen feature?

TIA

Regards,

Javier.

JavierGT at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3

I dont think so - check out the documentation ;-)

I couldnt find any event about this, there maybe one but I couldnt see anything that would tell you when the screen mode has been changed

ahmedilyas at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 4

I had the same problem, I couldn't find a direct way to block it. So I made a timer that checks if the player is full screen and if it is it sets the fullscreen parameter to false. And because the going into fullscreen is not instant it will not look as it is going into fullscreen at any time.

I hope you can work with this,

Kasper

KasperCottaar at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 5

if you do a

Me.AxWindowsMediaPlayer1.fullScreen = True

that will do it

click the full screen to return

cheyenne

cheyenne at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...