How do I play a midi file in Vb? (Urgent)

How do I go about Playing a midi file in vb no Ocx, none of that! Code only and Api! Thanx!!! unless this .ocx file comes w/ the windows 9x instalation!
ShroomAsked:
Who is Participating?
 
tyronebConnect With a Mentor Commented:
You need to go into Project - Components and add the Microsoft Multimedia control, paste one on your form (it can be invisible) and this is the code that I used to crank up mine:
        MMControl1.Notify = False
        MMControl1.Wait = True
        MMControl1.Shareable = False
        MMControl1.DeviceType = "Sequencer"
        MMControl1.filename = "C:\WINDOWS\YOURMIDI.MID"

        MMControl1.Command = "Open"
        MMControl1.Command = "Play"

I'm dabbling in some midis myself. Do you know where I could get some good ones?
0
 
ShroomAuthor Commented:
Can u do me a favor and send me the microsoft multi media control, or the URL for it I used to have it but computer crashed on me! thanx

0
 
tyronebCommented:
The control is MCI32.OCX. You got an email address? You may be able to download it from Microsoft.
0
 
ShroomAuthor Commented:
Ya my email is Shroom930@hotmail.com
0
 
ShroomAuthor Commented:
Ya my email is Shroom930@hotmail.com
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.