Sound on a form.

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I have a function that calls my .wav file.
Private Sub Form_Activate()
WavMyWelcome
End Sub
The problem is that the form doesn't get open until the
sound is done. (It takes 2 minutes.)
Is there a way to this sound as a background sound like a
web page?
Thanks
Mike
 
Instead of calling the WAV sub when the form activates,
use the On Timer event to call your sub, say, 5 seconds
after the form opens. Initially set your Timer Interval
to 5000 (5 seconds). Call your WavMyWelcome from On
Timer. You will need to re-adjust your Timer Interval
after the call, or every 5 seconds it will try to play the
WAV again. If the WAV is a minute long, maybe reset the
interval to fire every 62 seconds, so you have an almost
seamless loop of sound.
 
Woloman,
Thanks

This is a good idea
However, I'm using the Timer event (with different
setting) for different functions when the form is open.
Do you have any solution?

Thanks
Mike
 
Back
Top