• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

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!
0
Shroom
Asked:
Shroom
  • 3
  • 2
1 Solution
 
tyronebCommented:
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now