Source Code VB 6.0 Play sound

Source code VB 6.0 untuk play sound…

  • Buat command button di form
  • kemudian copy paste source code di bawah ke form yg dibuat

‘—copy here—-

Private Declare Function sndPlaySound Lib _
“winmm.dll” Alias “sndPlaySoundA” _
(Byval lpszSoundName As String, Byval uFlags As Long) As Long

Private Sub Command1_Click()
sndPlay = sndPlaySound(“C:\Filename.wav”, 1)
End Sub

—Selemat Mencoba—

Tinggalkan Balasan