I am using the following code:
I can't get it to play the two sounds at the same time..Code:Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long Const SND_ASYNC As Long = &H1 Public Sub Command1_Click() PlaySound "SystemExclamation", 0&, SND_ASYNC End Sub Public Sub Command2_Click() PlaySound "SystemExit", 0&, SND_ASYNC End Sub
I click command2, then I quickly click command1, and it stops 2 automatically....
How can I get them both playing at the same time?
Thanks,![]()




Reply With Quote