I have one OpenFileDialog
control that has Multiselect = true
. Now I want to add each file to windows media player playlist but I have no idea how to do that and there is no good example on the internet.
if (ofdSong.ShowDialog() == DialogResult.OK)
{
foreach (string file in ofdSong.FileNames)
{
//Code to add file to the playlist
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…