Kita akan menggunakan fungsi Windows API sndPlaySound dan kita deklarasikan seperti berikut ini:
Private
Declare
Function
sndPlaySound
Lib
"winmm.dll"
Alias
"sndPlaySoundA"
(
ByVal
lpszSoundName
As
String
,
ByVal
uFlags
As
Long
)
As
Long
Private
Const
SND_ASYNC = &H1
Setelah itu kita gunakan dalam event Form_Load()
Private
Sub
Form_Load()
Call
sndPlaySound(
"D:\Sample\Splash.wav"
, SND_ASYNC)
End
Sub
No comments:
Post a Comment