Click to See Complete Forum and Search --> : Avi files
Ester
Mar 15th, 2001, 01:02 PM
how can i display and Avi movie file?
chrisgaddy
Mar 16th, 2001, 09:35 PM
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"
Ester
Mar 18th, 2001, 01:21 PM
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
chrisgaddy
Mar 18th, 2001, 08:11 PM
Hey Ester, this link should help you:
http://support.microsoft.com/support/kb/articles/Q141/0/72.asp?LN=EN-US&SD=gn&FR=0&qry=q141072&rnk=1&src=DHCS_MSPSS_gn_SRCH&SPR=MSALL
Ester
Mar 19th, 2001, 01:51 PM
thxxxxxxxxxxxxx a lot, that was just exactly what i wanted :D
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.