You need to play a video file (such as an MPEG, an AVI, or a WMV file) in a Windows Forms application.
Use the ActiveMovie COM component included with Windows Media Player. Bind the video output to a picture box on your form by setting the IVideoWindow.Owner property to the PictureBox.Handle property.
How It Works
Although the .NET Framework does not include any managed classes for interacting with video files, you can leverage the functionality of DirectShow using the COM-based Quartz library included with Windows Media Player and the Windows operating system. For information about creating an interop assembly for the Quartz type library, refer to recipe 10-11.
Once you have created the interop ...