how can i display and Avi movie file?
Printable View
how can i display and Avi movie file?
place the Microsoft Media Control on your form. Place a picture box on your form...
'set the picture box to accept the avi file
MMControl1.hWndDisplay = Picture1.hWnd
'let the media control know what it is going to play
MMControl1.DeviceType = "AVIVideo"
'specify the file to open
MMControl1.FileName = "C:\WINNT\clock.avi"
'open the control
MMControl1.Command = "OPEN"
'now play the file
MMControl1.Command = "PLAY"
Make sure you close the control when complete. To close it:
MMControl1.Command = "Close"
hello there
how can i resize the the picture box to the right size of the movie, i tried using autosize property but during runtime the size of the picture box was still the same, with a part of it blank and the other part with like half the movie screen
Hey Ester, this link should help you:
http://support.microsoft.com/support...SRCH&SPR=MSALL
thxxxxxxxxxxxxx a lot, that was just exactly what i wanted :D