OpenFileDialog dlgOpenFile = new OpenFileDialog(); String filepath = ""; string[] str; string nomeFich = ""; dlgOpenFile.Filter = ("MP3 files (*.mp3)|*.mp3"); if (dlgOpenFile.ShowDialog() == DialogResult.OK) { filepath = dlgOpenFile.FileName; long fileSize = 0; System.IO.FileInfo fi = new FileInfo(filepath); fileSize = fi.Length; progressBar1.Minimum = 0; progressBar1.Maximum = (int)fileSize; fileSize = fileSize / 1000000; for (int indice = 0; indice < fileSize; indice++) { progressBar1.Value = indice; SoundPlayer.URL = odf.FileName; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)