-
I am making an mp3 jukebox which seaches for mp3s on my hardrive then lists the results in a list box
i can make a button play a specific mp3 by using
MediaPlayer1.Open "D:\Dr. Dre - Forgot about DRE.mp3"
how can i use that code and have the path in the list box become the "D:\Dr. Dre - Forgot about DRE.mp3"???
if u know of anything that will help me please tell me!
-
in the listbox click event use the property list1.list(list1.listindex) to access the item you clicked on, i'm not sure if that's what you wanted? Maybe you already know how to use mediaplayer?
-
ok thanx for that but i uses this code
Private Sub lstFoundFiles_Click()
MediaPlayer1.Open "lstFoundFiles.list"
End Sub
1stfoundfiles being the listbox
and all that happens is the stop button flashes from disabled to enable for a second
i really need help!
-
List is a indexed property, use it like this:
Code:
MediaPlayer1.Open lstFoundFiles.list(lstFoundFiles.listindex)
no quotation marks either
-
Sick
Thanx man it actually works!!!
i have just started with vb
like 3 weeks ago and i know a few things now
skool doesnt teach me anything i teach my teacher how to do stuff on the comps so i have to learn myself!!
anyway thanx a lot