I have list of video files in datagridview object, and I want to play it one after other
I have the following code
For Each dgvRow In bout_shedule.Rows
vfile = dgvRow.Cells("VideoFile").value
player.URL = vfile
player.Ctlcontrols.play()
System.Threading.Thread.Sleep(duration * 1000)
Next
I also have get the duration of video file; now I want the media player to play the first video and stops the loop; once it finishes playing video, than the loop continues to the 2nd row, but the nothing is going to play at all. How can I solve this problem ?