How to get back the control
Hi,
I have a user form with command buttons cmdPlay and cmdExit.
cmdPlay_Click has the following code:
Private Sub cmdPlay_Click()
sndPlaySound32 "C:Welcom98.wav", 0
End Sub
This wave file plays for 30 seconds.
cmdExit_Click has the following code:
Private Sub cmdExit_Click()
End
End Sub
After clicking cmdPlay, if I am clicking cmdExit then the program is
not ending immediately. It is waiting for the wave file to finish
playing for 30 seconds. Is it possible that when cmdExit is clicked,
within 30 seconds, then the program should end immediately rather than
waiting for the whole 30 seconds.
Thanks & Regards,
Prasad Vanka
|