Comment jouer un son wave à l'aide de PlaySound dans une application Windows Forms (.NET)que faut' il declarer ?
svp un exemple merci.
Salut voila pour ton probleme moi aussi j'ai galererPublic Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Public Const SND_SYNC = &H0 ' Jouer synchrone (par défaut) Public Const SND_ASYNC = &H1 ' Jouer en asynchrone Public Const SND_LOOP = &H8 ' Répéter le son jusqu'au prochain son Public Const SND_STOP = &H4 'Arrête le fichier son Private Sub Button1Click(sender As System.Object, e As System.EventArgs) sndPlaySound ("test.wav", SND_ASYNC) 'Jouer en asynchroneEnd Sub
Se souvenir du profil
Mot de passe oublié ? / Activation de compteCréer un compte