Media Player Active X Control: Properties

AndyTheAstronomer

New member
Local time
Yesterday, 22:29
Joined
Aug 23, 2014
Messages
9
Hi guys,

I am having problems using the Windows Media Player ActiveX control. I hope somebody can help.

The problem I am having is that the .fullScreen property does not seem to work in an Access form. Setting the property to True in VBA generates an error saying "Invalid Reference to Property".

Actually, even if you are not using VBA to set the property, setting it to "Yes" in form design works, but when you save the form the property reverts to "No".

So I am guessing .fullScreen is not supported by Access.

My question is: through VBA or otherwise, does anybody know of a way of making the Media Player control go full screen? Resizing the control manually is not supported in an Access form either, and nor is the stretchToFit property. The only way I can find is to right-click on the player when it's running and use the Zoom control to set the size, but I don't want to have to do this.

I am using Access 2013. I'm not sure what version the OCX is but I'm running Windows 8.1

Thanks in advance for any help

Andy.
 
I've not used the Windows Media Player in Access before but I've played with others in other platforms in the past.

Upload a test db so I can see if there's a workaround.
 
I will do that tomorrow.Many thanks for your help.
 
Here is the database. It contains just one form, FrmMediaPlayer, with the control embedded in it. If you can make the form open with the media player full screen, then you are truly a worker of miracles! :)

Many, many thanks for your help

Andy
 

Attachments

See attached.

I've put some very simple lines of code that will cause the Media Player to stretch and shrink when the form changes in size.

Two things to note:
1. I've set the form to load maximised which means the media player will follow suit.
2. Also, if you play a file the Play Full Screen property of the Win Media Player ActiveX will cause it to play in full screen mode, so if you set a file to play before the form loads then it will stretch to full screen as well.
 

Attachments

A thousand thanks for this.....I shall have a look at it tomorrow.

I am very grateful

Andy
 
Perfect! That works exactly as required!

And so simple too....I don't know why I didn't think of it! :) :)

I am very grateful.....!!!!!

Kind regards

Andy.
 

Users who are viewing this thread

Back
Top Bottom