Add a microsoft multimedia control and a picturebox to a form, and paste the following in the forms module...
Code:
Private Sub Form_Load()
MMControl1.FileName = "c:\avifilename.avi" 'path of the avi file
MMControl1.hWndDisplay = Picture1.hWnd
MMControl1.Command = "open"
End Sub
Private Sub Form_Unload(Cancel As Integer)
MMControl1.Command = "stop"
MMControl1.Command = "close"
End Sub
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe