Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Play CD (MM control)


'multimedia control supports AVI, MPG video files - .WAV, MID audio files - music CD in CD-ROM drive
'does not support .MP3 files
'multimedia control can be visible, or not.
'if visible, user can press buttons to control actions
'if not visible, control of files to be played is handled via code only

MMControl1.DeviceType = "CDAudio"
MMControl1.Command = "Open"     'control buttons will now activate