If you know how to stop it normally, it'll be very simple to stop it after 5 seconds. Add a timer with Interval = 5000 (miliseconds). In timer_Tick method, write the codes to stop the sound loop. Set timer.Enable = true at the time you play the sound. Thanks !