Results 1 to 2 of 2

Thread: .wav

  1. #1

    Thread Starter
    Lively Member Crazy_bee's Avatar
    Join Date
    Jul 2001
    Location
    Fitchburg
    Posts
    90

    .wav

    How would I play a .wav on click?
    Don't ever Ginop before you Ginip

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. Option Explicit
    2. Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
    3. Private Const SND_ASYNC = &H1
    4. Private Const SND_FILENAME = &H20000
    5.  
    6. Private Sub Command1_Click()
    7.     PlaySound "C:\TEST.WAV", 0&, SND_FILENAME Or SND_ASYNC
    8. End Sub
    -= a peet post =-

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