2011-02-11 53 views

回答

2

我認爲你正在尋找TagLib.File.Properties.Duration,它返回一個TimeSpan對象。從那裏你可以使用TotalSeconds在幾秒鐘內獲得mp3的長度。

+0

添加標籤,也TotalMilliseconds爲毫秒。 :) – Russell 2011-02-17 03:11:58

0

添加這個軌道條和不要的計時器忘了在

Label4.Text = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.durationString

球員