[.NET] 播放清單

看板Visual_Basic作者 (Bingo)時間16年前 (2009/09/04 17:49), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
大家好 想請問一下 在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
文章代碼(AID): #1AeEAL-Q (Visual_Basic)
文章代碼(AID): #1AeEAL-Q (Visual_Basic)