码迷,mamicode.com
首页 > 其他好文 > 详细

Load Audio or Vedio files

时间:2016-12-05 01:35:12      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:bsp   pen   files   .sh   res   i++   length   index   sel   

 1   //Load Audio or Vedio files 
 2         private void btnLoadFile_Click(object sender, EventArgs e)
 3         {
 4             Startindex = 0;
 5             playnext = false;
 6             OpenFileDialog opnFileDlg = new OpenFileDialog();
 7             opnFileDlg.Multiselect = true;
 8             opnFileDlg.Filter = "(mp3,wav,mp4,mov,wmv,mpg,avi,3gp,flv)|*.mp3;*.wav;*.mp4;*.3gp;*.avi;*.mov;*.flv;*.wmv;*.mpg|all files|*.*";  
 9             if (opnFileDlg.ShowDialog() == DialogResult.OK)
10             {
11                 FileName = opnFileDlg.SafeFileNames;
12                 FilePath = opnFileDlg.FileNames;
13                 for (int i = 0; i <= FileName.Length - 1; i++)
14                 {
15                     listBox1.Items.Add(FileName[i]);
16                 }
17 
18 
19                 Startindex = 0;
20                 playfile(0);
21             }
22         }

 

Load Audio or Vedio files

标签:bsp   pen   files   .sh   res   i++   length   index   sel   

原文地址:http://www.cnblogs.com/endv/p/6132284.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!