We have created an audio player that enables you to play midi and wave files in your hard drives or floppy A or CDROM. It allows you to change drives and search for the particular sound file that you wish to play.
In this program, you have to add a Combo box, a List Box, a Text Box, a Drive List Box and three command buttons. Change the label of one of the buttons to "PLAY", another command button to "STOP", and the last command button to "EXIT". Besides, you need to add the MMControl and make it invisible.
![]() |
|
The code
Sub Combo1_Change( )
End Sub
If Right(File1.Path,1) <>"\" Then
Else
End If Text1.Text=filenam End Sub
Private Sub Play_Click( )
MMControl1.FileName=Text1.Text
End Sub
|
Private Sub Stop_Click( )
End Sub
Private Sub Dir1_Change( )
Private Sub Drive1.Change( )
Private Sub Form_Load( )
End Sub
|