Solved

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

Posted on 1999-01-15
5
165 Views
Last Modified: 2010-05-03
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
Comment
Question by:Shroom
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
tyroneb earned 0 total points
ID: 1456715
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
 

Author Comment

by:Shroom
ID: 1456716
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
 

Expert Comment

by:tyroneb
ID: 1456717
The control is MCI32.OCX. You got an email address? You may be able to download it from Microsoft.
0
 

Author Comment

by:Shroom
ID: 1456718
Ya my email is Shroom930@hotmail.com
0
 

Author Comment

by:Shroom
ID: 1456719
Ya my email is Shroom930@hotmail.com
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cannot enter table caption text in Word protected document 6 127
Problem to skip loop 6 58
Using an encrypted  value to decrypt and display contents in vb6 9 52
Help me. 3 57
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question