Ok, here is a simple capture of a picture box playing an avi with the use of a MMC (Microsoft Multimedia Control). What you need to do is... take the code in the other thread708-428674 and place it in a module of a new project. Add a command button (Command1) a picture box (Picture1) and a Microsoft Multimedia Control (MMControl1) to form1 and cut and paste the following code into form1...
[tt]
Option Explicit
Dim Cnt As Integer
Dim BasePath As String
Private Sub Form_Load()
BasePath = "Enter your path here"
End Sub
Private Sub Command1_Click()
MMControl1.Notify = True
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.DeviceType = "AVIVideo"
MMControl1.FileName = "C:\Program Files\Microsoft Visual Studio\Common\Graphics\Videos\FileCopy.avi"
'or where ever you have an avi
MMControl1.hWndDisplay = Picture1.hWnd
MMControl1.Command = "Open"
MMControl1.Command = "Step"
MMControl1.Frames = 1
End Sub
Private Sub MMControl1_Done(NotifyCode As Integer)
SavePicture CaptureWindow(Picture1.hWnd, False, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight), BasePath & Cnt & ".bmp"
Cnt = Cnt + 1
MMControl1.Notify = True
MMControl1.Command = "Step"
MMControl1.Frames = 1
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
MMControl1.Command = "Close"
End Sub
[/tt]
I hope this helps, Good Luck