Current location - Music Encyclopedia - QQ Music - How to do it? Make a music player with VB. When lisl1 has content, click command1 to play the first song of list1.
How to do it? Make a music player with VB. When lisl1 has content, click command1 to play the first song of list1.
Private?Sub?Command1_Click()
WindowsMediaPlayer1.URL?=?List1.List(0)
WindowsMediaPlayer1.Controls.play
< p>End?Sub
Private?Sub?Form_Load()
List1.AddItem?"E:\Music\The Castle of Love?-?Zhuo Wenxuan.mp3"'Your Song Path