hey guys, I have an application that is supposed to play a .wav file as it closes. I got the sound to play and everything, however, on the exit button the my playsound is right before my me.close() so that it starts to play the sound but my project closes before it finishes playing the sound. Can someone tell me how to delay the me.close() or close the project after the sound is completed? Here is some of my code:
Code:
'this is the exit button that exits the program
'and is supposed to play a .wav file as it exits
Dim snd As SoundClass = New SoundClass
snd.PlaySoundFile(FILE_NAME)
Me.Close()