Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Play Midi File

Status
Not open for further replies.

labprof

Technical User
Jan 26, 2006
49
US
Can anyone tell me if it is possible to play a midi file in the background when a form is opened?
I would like this sound file to play continuously until the form is closed.
If so.... how would I create the code? I'm sure it would be in the On Open event line.

Any help would be sincerely appreciated.

Labprof
 
So.....
Do I take this lack of response as a NO?

If this is the wrong forum for this question, please direct me to the proper forum. But being I want to play this MIDI file when a form opens, I figured this form forum would be appropriate.

Everyone..... Have a wonderful day.

Labprof
 
You can see if this link will help.


(No. 138 towards the bottom of the page)

I tried adding a media player control to a form (added reference first) but it will not let me auto repeat a midi file to play continuously.
 
but it will not let me auto repeat a midi file to play continuously
you may try something like this:
With Me![ocxWindowsMediaPlayer]
.URL = strAudioFile
[!].settings.playCount = 999[/!]
End With


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top