Article ID: 112732
Article Last Modified on 12/9/2003
Sub Form_Load()
MMControl1.DeviceType = "CDAudio"
MMControl1.Command = "Open"
End Sub
Sub Command1_Click()
' Set the timeformat to allow seek to move between tracks:
mmcontrol1.TimeFormat = 10
' Loop through all tracks and play each for five seconds:
For i = 1 To MMControl1.Tracks
MMControl1.To = Str$(i)
MMControl1.Command = "Seek"
MMControl1.Command = "Play"
x = Timer
While Timer < x + 5
DoEvents
Wend
Next
' Stop the CD:
MMControl1.Command = "pause"
End Sub
Additional query words: 2.00 3.00
Keywords: KB112732