That some content does not have a duration value to share. This means trouble for the new programmer that thought all the files have this. The second bit of trouble is the mkv container. Since it's a container it can have clips of varying length and then which to report?
'''' mp , (WMP.OCX)
my code is...this
dim lnth as double
mp.url = "c:\Songs\s1.mkv"
lnth = mp.Currentmedia.Duration
every think is ok,playing video file good but problum is .. mp.Currentmedia.Duration ( show the lenth value but lnth is not receving value -- lnth shows value 0
when i use command button when click it works . I want autometicaly get value in variable