I'm trying to create a program in Visual Basic 6.0 that can open links at the same time at one click of a button. My code looks like this:
Private Sub OK_Click()
Dim i As Integer
Dim FileName As String
For i = 0 To (File1(0).ListCount - 1)
If (File1(0).Selected(i)) Then
Shell (File1(0).Selected(i))
End If
Next
End Sub
When I've marked a link in my FileListBox and press ok, it just says "Runtime Error 53: File not found", but my link is in the folder!
What am I doing wrong?
Software/Hardware used:
Visuan Basic 6.0
ASKED:
December 9, 2012 12:12 PM
UPDATED:
December 11, 2012 8:05 PM