音乐发现者 [英] music finder

查看:64
本文介绍了音乐发现者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须为编程类final创建一个程序,它会像这样打破dow。我有两个用于用户输入的文本框,一个连接到dirlistbox的drivelistbox,它也链接到一个文件列表框,这样用户可以选择他的音乐所在的驱动器,然后找到音乐所在的文件夹,如果其他人像我一样,你有找到你正在寻找的艺术家或歌曲所需的音乐如此之多,所以我创建了一个按钮,在文件框中搜索包含上面输入的字符串的文件,并将结果放入最右边的列表框中。现在我遇到的问题是我已经在表单上放置了一个媒体播放器控件,这样当用户点击他/她想要收听的歌曲它将在媒体播放器控件中播放时,列表框中的文件显然不会有文件的路径,所以媒体播放器将不会播放所选的文件,如果有人可以请帮助我编码,以允许媒体播放器跟踪文件路径,以便文件播放我将非常非常。

i had to create a program for a programming class final, it breaks dow like this. i have 2 textboxes for user input, a drivelistbox which is linked to a dirlistbox which is also linked to a filelistbox so the user can choose the drive his music is on then find the folder the music is in and if others are like me you have so much music it takes for ever to find the artist or song you are looking for so i made a button that searchs the filelistbox for files that contain the strings input above in the textboxes and puts the results into a listbox on the far right. now the problem i am running into is i have put a media player control on the form so that when the user clicks the song he/she wants to listen to it will play in the media player control, the file in the listbox apparently does not have the path for the file so the media player will not play the selected file if someone could please help me out with the coding to allow the media player to trace the filepath so that the file playes i would be very very greatful.

推荐答案


i必须为编程类final创建一个程序,它会像这样破坏dow。我有两个用于用户输入的文本框,一个连接到dirlistbox的drivelistbox,它也链接到一个文件列表框,这样用户可以选择他的音乐所在的驱动器然后找到音乐所在的文件夹,如果其他人像我一样你有找到你正在寻找的艺术家或歌曲所需的音乐如此之多,所以我创建了一个按钮,在文件框中搜索包含上面输入的字符串的文件,并将结果放入最右边的列表框中。现在我遇到的问题是我已经在表单上放置了一个媒体播放器控件,这样当用户点击他/她想要收听的歌曲它将在媒体播放器控件中播放时,列表框中的文件显然不会有文件的路径,所以媒体播放器将不会播放所选的文件,如果有人可以请帮助我编码,以允许媒体播放器跟踪文件路径,以便文件播放我将非常非常。
i had to create a program for a programming class final, it breaks dow like this. i have 2 textboxes for user input, a drivelistbox which is linked to a dirlistbox which is also linked to a filelistbox so the user can choose the drive his music is on then find the folder the music is in and if others are like me you have so much music it takes for ever to find the artist or song you are looking for so i made a button that searchs the filelistbox for files that contain the strings input above in the textboxes and puts the results into a listbox on the far right. now the problem i am running into is i have put a media player control on the form so that when the user clicks the song he/she wants to listen to it will play in the media player control, the file in the listbox apparently does not have the path for the file so the media player will not play the selected file if someone could please help me out with the coding to allow the media player to trace the filepath so that the file playes i would be very very greatful.



您想要将FileListBox文本与FileListBox.Path属性组合以获取文件的完整路径:

You want to combine the FileListBox text with the FileListBox.Path property to get the full path to the file:

展开 | 选择 | Wrap | 行号



您希望将FileListBox文本与FileListBox.Path属性组合以获取完整路径文件:

You want to combine the FileListBox text with the FileListBox.Path property to get the full path to the file:

展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号


现在我只需要做一件事,那就是让它转到列表中的下一首歌。关于如何做的任何想法???
now there is only one other thing i need to do with it and that is to make it go to the next song in the list. any ideas on how to do that???


这篇关于音乐发现者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆