I am using the following code: using Microsoft.DirectX.AudioVideoPlayback; int width = panel_vid.Width; int height = panel_vid.Height; vid = new Video(@"c:\cc.avi"); vid.Owner = panel_vid; vid.Size = panel_vid.Size; vid.Play();