Windows Media Player ActiveX Controls

The_Vincester

Registered User.
Local time
Today, 13:06
Joined
Jun 6, 2006
Messages
71
After searching the forums, I've found some information, but not what I need or what works.

I've got everything playing fine, from where people can play a file they choose from a list, but I need to add some advanced controls for Fast Fowarding and such.

Searching google, I've managed to find plenty of VB controls, but none seem to work in VBA. I've set the Media Player references, but when trying:

me.MediaPlayer0.Controls the only option it gives me are Items and Count, not Play, Stop or Pause (or anything similar).

Anyone know how to do the advanced controls?
 
The places you USUALLY look are:

1. The HELP files for the application - to see if they list methods to do what you want.

2. The Object Browser - to see what methods and properties are list for the named object or object class. (I think in this case you have to be looking at the browser from the class module of the form making the actual reference.)

Beyond that, I'm not sure where to look. Maybe a Google search?
 
I've tried all of the above which is why I'm posting here. I'm out of ideas.
 
I don't know if you still need this Vin, but the biggest problem most people have using ActiveX controls is that they refer to the control much like any other control, Me.ControlName.Property, which means that the handy little feature known as intellisense will not work, preventing the user from easily identifying the members of the control.

However, if you follow this procedure when working with ActiveX controls, you will have a much easier time with there functionality:
  • Declare the object at the top of the module
  • On the form's Load event, setup the object
  • Now, instead of Me.ControlName.Property, simply type name of the object you defined and intellisense will work
I have never used the Microsoft Windows Media Player control, but take a look at the attachment and see if this is what you were looking for.
untitledhj3.jpg
Hope this helps,
Scott
 

Attachments

  • untitled.jpg
    untitled.jpg
    43.4 KB · Views: 886
Last edited:
After searching the forums, I've found some information, but not what I need or what works.

I've got everything playing fine, from where people can play a file they choose from a list, but I need to add some advanced controls for Fast Fowarding and such.

Searching google, I've managed to find plenty of VB controls, but none seem to work in VBA. I've set the Media Player references, but when trying:

me.MediaPlayer0.Controls the only option it gives me are Items and Count, not Play, Stop or Pause (or anything similar).

Anyone know how to do the advanced controls?

Just for kicks, try the "me.MediaPlayer0.Controls.fastForward", even if you don't get "fastForward" in the dropdown list when you press the "." after "controls".
 
Just for kicks, try the "me.MediaPlayer0.Controls.fastForward"

The syntax in either method should give the same result. I was just demonstrating a way to expose the controls properties to make things easier.
 

Users who are viewing this thread

Back
Top Bottom