Results 1 to 2 of 2

Thread: Sound knowlege

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    3

    Arrow Sound knowlege

    I need some help playing a .wav file when a form opens. Someone told me I need to use API so I thought i'd post here.
    Hightower :-)

  2. #2
    Matthew Gates
    Guest
    Use the PlaySound API function.


    VB Code:
    1. Private Declare Function PlaySound Lib "winmm.dll" _
    2. Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As _
    3. Long, ByVal dwFlags As Long) As Long
    4.  
    5. Private Sub Command1_Click()
    6.     PlaySound "C:\MyFile.wav", 0&, &H1
    7. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width