I'm always so close to being done my "game" and then i think of adding something new to it....
I know that in vb 6.0 that there is a "windows media player" tool, but it only allows you to play one song, not a different song after one is finished. So i searched on youtube and found a video
and in this video he shows that his code actually works, so i thought i'd use it...but im getting a problem..
This is the code im having problems with....Everyti me i click "Add file" (Please watch the video is a important point to understanding what im saying) i get and error message and it highlights the code ".Dialog Title = " Open Media..." if someone can tell me whats wrong and how to fix it...or if you know another way to make files that play after one another Thank you.
*Below is the whole code*
I know that in vb 6.0 that there is a "windows media player" tool, but it only allows you to play one song, not a different song after one is finished. So i searched on youtube and found a video
and in this video he shows that his code actually works, so i thought i'd use it...but im getting a problem..
This is the code im having problems with....Everyti me i click "Add file" (Please watch the video is a important point to understanding what im saying) i get and error message and it highlights the code ".Dialog Title = " Open Media..." if someone can tell me whats wrong and how to fix it...or if you know another way to make files that play after one another Thank you.
*Below is the whole code*
Code:
Private Sub Command1_Click()
Dim sFile As String
With CommonDialog1
.Dialog Title = " Open Media..."
.CancelError = False
.Filter = "All Suported Files"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sFile = .FileName
With List1
.AddItem sFile
End With
End With
End Sub
Comment