Well depending on the type of AVI you need to play you may be able to get away with using the animation control that MS provide as part of the common control library, has been shipping with Win95+ and NT3.51+.
It internally creates a separate thread to playback the AVI so that takes care of the original request for the other controls to be available. Here is the info from the PSDK about the types of AVI files it can handle. Animation controls can play only simple AVI clips. Specifically, the clips to be played by an animation control must meet the following requirements: - There must be exactly one video stream and it must have at least one frame. - There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the animation control ignores audio information). - The clip must either be uncompressed or compressed with RLE8 compression. - No palette changes are allowed in the video stream. - You can add the AVI clip to your application as an AVI resource, or it can accompany your application as a separate AVI file. Because your thread continues executing while the AVI clip is displayed, one common use for an animation control is to indicate system activity during a lengthy operation. For example, the Find dialog box of Windows Explorer displays a moving magnifying glass as the system searches for a file. > -----Original Message----- > From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of > Andreas Häber > Sent: Wednesday, April 17, 2002 1:04 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] How to place and play an AVI file on a form? > > > There isn't any classes in the CLR for audio/video support, so you have to > interop with something.. like the suggested WMP ActiveX control. I don't > think it should be any big problem using the WMP ActiveX from a Windows > Form, and the COM interop will make it look like it's .NET :-) > > Andreas Häber > > ----- Original Message ----- > From: "Henrik Enemark Rasmussen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, April 16, 2002 11:52 PM > Subject: Re: [DOTNET] How to place and play an AVI file on a form? > > > > Media Player may be a solution, but I was hoping for a simpler approach > that > > does not involve pre-.NET components. > > > > But if that's the only solution, I guess I have to figure out how to use > > Media Player. Do you know of any samples with .NET / C# code. > > > > Thanks > > Henrik > > > > > -----Original Message----- > > > From: Marsh, Drew [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, April 16, 2002 11:52 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: How to place and play an AVI file on a form? > > > > > > > > > Henrik Enemark Rasmussen [mailto:[EMAIL PROTECTED]] wrote: > > > > > > > How can I place an AVI file on a form with other controls > > > and play the > > > > AVI file while the other controls are available to the > > > user? Is there > > > > a way the PictureBox or ImageAnimator can do this? > > > > > > How about the Windows Media Player ActiveX control? > > > > > > Later, > > > Drew > > > > > > You can read messages from the DOTNET archive, unsubscribe > > > from DOTNET, or subscribe to other DevelopMentor lists at > > > http://discuss.develop.com. > > > > > > > You can read messages from the DOTNET archive, unsubscribe from > DOTNET, or > > subscribe to other DevelopMentor lists at http://discuss.develop.com. > > > > > > > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.