How to play a sound for 2 seconds only?

i want to play one sound. i want to play it just 2 seconds only. then it must stop. i have small sound ogg phile. my blck is
when clock timer. do. if textbox.text = 10
call sound1.play

in this case at prescent it dos not stop. it goes on on on with a 30 second brek as per my seting. i want to stop after 2 second. plese help.

use a clock component, in the designer set enabled to false and set timer interval to 2000
in the clock.timer event add a Sound.Stop method
then start playing the sound and start the clock

Taifun
PS: for new questions please start a new thread next time. Thank you.

2 Likes