Question : Getting the duration of an audio file using VB.NET

Hello

Does anyone know how to return the duration of an audio file using VB.NET code?

Thanks
Iain

Answer : Getting the duration of an audio file using VB.NET

'this is the windows media player activex control
Me.pl = New AxWMPLib.AxWindowsMediaPlayer()

sub form1_load
pl.URL = "C:\Program Files\mysound.mp3"
soundlength = pl.currentMedia.duration()
end sub

Good Luck
Random Solutions  
 
programming4us programming4us