Posted on: 11/24/2012 12:31:34 AM | Views : 439

Hello,All Expert
I'am using asp.net in c#,I get the duration in audio files on button click with play window media player,but i want get the duration without play audio ,So how can i get the duration ................Pls help me....

Thanx
My code is:-
private void button5_Click(object sender, EventArgs e) { if (listBox1.Items.Count == 0) { MessageBox.Show(@"PLZ BROWSE THE FOLDER !"); } else { if (listBox1.SelectedItem == null) { MessageBox.Show(@"PLZ SELECT THE ITEM !"); } else { var file = new FileInfo(listBox1.SelectedItem.ToString()); textBox2.Text = axWindowsMediaPlayer2.currentMedia.name; textBox3.Text = Path.GetExtension(axWindowsMediaPlayer2.currentMedia.sourceURL); //textBox4.Text = Convert.ToString(file.Length / 1024 / 1024 + " " + "MB"); textBox4.Text = Convert.ToString(file.Length / 1024 & ...

Go to the complete details ...