You can create various multimedia applications in VB that couold play audio CD, audiofiles, VCD , video files and etc and to be able to play multimedia files or multimedia devices,
A D V E R T I S E M E N T
you have to insert Microsoft Multimedia Control into your VB applications
that you are going to create. However, Microsoft Multimedia Control is not normally included in the startup toolbox and therefore you need
to add the MM control by pressing Ctrl+T and select it from the components dialog box that is displayed.
The interface looks like this:
The code for the cd player is as follows:
Private Sub Form_Load()
'To position the page at the center
Left = (Screen.Width - Width) \ 2
Top = (Screen.Height - Height) \ 2
'Open the CD
myCD.Command = "Open"
Private Sub myCD_StatusUpdate()
'Update the track number
trackNum.Caption = myCD.Track
Private Sub Next_Click()
myCD.Command = "Next"
Private Sub Play_Click()
myCD.Command = "Play"
Private Sub Previous_Click()
myCD.Command = "Prev"
Private Sub Stop_Click()
myCD.Command = "Stop"
Private Sub Exit_Click()