If you want to play MDI or WAV files, click on one of those links. If you want to play CD's, you need to use the Multimedia control. To set up the Multimedia Control to play a CD all you need is to write one line of code, and change some of its properties. Set it's properties to the following:
Property |
Value |
Device Type | CDAudio |
Autodisable | True |
Then, insert the following line of code into the Form_Load() procedure:
MMControl1.Command = "Open"
Now just run your application. It's a simple as that!
Comments