[VBA ] LISTBOX播放 相關問題請教
您好 小弟有些VB問題想要請教,
小弟現在 正在製作一個MV播放器
點擊listbox相對應選項 就會播放相對應MV
就是
點第一個listbox選項 會播第一部MV
點第二個listbox選項 會播第二部MV
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
WindowsMediaPlayer1.settings.setMode("loop", True)
If ListBox1.SelectedIndex = 0 Then WindowsMediaPlayer1.URL = 網址1
End If
If ListBox1.SelectedIndex = 1 Then WindowsMediaPlayer1.URL = 網址2
End If
End Sub
End Class
但是我不管點哪個都只會撥第一部MV
希望大大能指點一下,謝謝!!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.73.50.188
→
07/28 00:37, , 1F
07/28 00:37, 1F