作者h2897 (Bingo)
看板Visual_Basic
标题[.NET] 播放清单
时间Fri Sep 4 17:49:05 2009
大家好 想请问一下 在VB.NET中
因为我现在在vb.net引用了.com元件 (windows media player)
我想请问一下 如果要从CD中读取曲目资讯
要怎麽读取?
现在我想将CD中的曲目一一取出放入currentlist中
但是 每每显示出来的歌曲名称都是1.2.3.4.....
而我使用的办法是 利用cda的路径 抓取CD档案 利用for回圈一笔一笔加入播放清单
Dim num As Integer
For num = 1 To filenum
Dim a As String
a = di.Name & "Track" & num & ".cda"
AxWindowsMediaPlayer.currentPlaylist.appendItem(.newMedia(a))
但这样好像显示出来的音讯名称不会是CD内容上的名称
想请教大家
若要将CD内容的正确名称的显示要怎麽将CD的曲目放入currentlist中呢?
而显示名称的方法我用的是
For count = 0 To (filenum - 1)
Me.ListBox1.Items.Add(AxWindowsMediaPlayer.currentPlaylist.Item(count).name)
Next
麻烦大家了 先谢谢各位
--
Love filled with unsure tough things...
Be sure to be in lovely life with the person who you want to be with....
http://www.wretch.cc/album/h2897
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.166.216.244