Visual Basic 6.0 Adding Sound To your Buttons and stuff!Say What YOU think about the code!, i wanna know what you think about it :D Here is a code that you can use on your buttons! its really cool! News: Added the code in this text some place :p BTW.... Thanks to my friend talking on Ventrilo while i was recording -_- hehe Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Const SND_SYNC = &H0 Const SND_ASYNC = &H1 Const SND_NODEFAULT = &H2 Const SND_LOOP = &H8 Const SND_NOSTOP = &H10 'Yeah! Private Sub Command1_Click() Soundfile$ = "C:\Delte Filer\Ventrilo\Channel.wav" wFlags% = SND_ASYNC Or SND_NODEFAULT Sound = sndPlaySound(Soundfile$, wFlags%) End Sub Private Sub Command2_click() StopTheSoundNOW = sndPlaySound(Soundfile$, wFlags%) End Sub code pour embarquer la vidéo : >>> http://www.youtube.com/embed/fLfmHTzAR9U <<< |