Sound on a form.

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
 
W

woloman

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.
 
M

Mike

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top