Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,535 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,787 people online right now. Registration is fast and FREE... Join Now!




Open Windows Media Player in synchronous mode

 
Reply to this topicStart new topic

Open Windows Media Player in synchronous mode

OcalaHugh
23 Aug, 2008 - 09:36 AM
Post #1

New D.I.C Head
*

Joined: 19 Aug, 2008
Posts: 5


My Contributions
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
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 10:19PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month