|
I want to open the windows media player in synchronou mode. When I open it with the method below it opens in asynchronous mode. If you are able to help. Please drop an email. I find it difficult to find things on the board. Hugh {EMAIL REMOVED}
=====================================
1 Put the following code in the Declaration section of a module to make it available to all forms
<code>
Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long)
</code>
2. Put a command button on your form and copy the following code in to subroutine
<code>
Private Sub Command1_Click() Dim s1 ' s1 is the location of your WAV file s1 = "c:\VectorSounds\numberline.wav" ' ' s1 is the path and name of the wav file WindowsMediaPlayer1.URL = s1
' </code>
3. This will open the Windows Media Player is asynchronous mode . If you find out how to open the Windows Media Player is
synchronous mde, please drop me an email. h.a.haggerty@earthlink.net
|