• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

windows mediplay

i have an embedded wmp controls in an access form how can i activate the mute control form a button on the form or set the volume to zero. thanks
0
wwstudioinc
Asked:
wwstudioinc
  • 3
  • 3
1 Solution
 
ragoranCommented:
It is difficult to tell without the documentation of the specific control, but I will expect the control will expose methods to interact with it.

From the Visual Basic editor, click on the "Object Browser" button.  You should be able to select the library tour control is from.  You can then explore the objects, methods and property supported by the control.
0
 
wwstudioincAuthor Commented:
i check the object browes i don't see as must or speaker off
0
 
ragoranCommented:
Can you gave us the exact name of the control you want to use and where you could find it ?
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
wwstudioincAuthor Commented:
windows media player in ms access add the reference
0
 
ragoranCommented:
Wow, I agree with you that this is not an easy object to understand.

In the Object Browser window, the main object is WindowMediaPlayer, which has a property Setting that return on object of type IWMPSetting.  This class has a mute property that you can set to true (mute) or false (not mute).

So in your form, add a toggle button (this make more sense for a on/off action than a regular command button), named tglMute in this example, then add this code on the click event:

Private Sub tglMute_Click()

   Dim oWMP As WindowsMediaPlayer
   
   'Replace WMPCtrl by the name of your control in the next line
   Set oWMP = Me.WMPCtrl.Object
   
   oWMP.settings.mute = Me.tglMute
   
   Set oWMP = Nothing
   
End Sub
0
 
wwstudioincAuthor Commented:
thank you soooooooooooooooooo much
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now