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—

Iklan

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s