I just created a test form, that had the MS Animation control, and a button that contained the following in the click event:
thisform.ocxAVI.AutoPlay = .t.
thisform.ocxAVI.Open(getfile())
It ran with no problems. Are you setting anything else? Using the control's property sheet?
>Well, closer I guess, at least it doesn't crash VFP6!!
>
>When the ThisForm.ocxAVI.OPEN("xxx.avi") runs I get an error saying "OLE IDispatch exception code 0 from Animation: Unable to open AVI file.."
>
>I tried it with several different .AVI files, and they DO run with the media player. Any ideas?
kenweber
GCom2 Solutions
Microsoft Certified Professional