473,480 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

playing an avi file in a window

Here is what I want to do..

You know how the file copy dialog boxes in explorer show an animated image
as the files copy? Well that is an AVI file with a magenta background color.
The background color becomes transparent when played on a form. How can I do
this in C# on a WinForm? Thanks
Nov 16 '05 #1
2 3171
If it's possible, it will be in the managed directx classes. Unfortunately,
DirectShow has not been wrapped with managed classes (there is an
AudioVideoPlayback class, but I doubt it has the features you need).

The newsgroup for this library is:
microsoft.public.win32.programmer.directx.managed

Hope that helps you get started...

--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/
"Brian Henry" <brian.henry[nospam]@adelphia.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Here is what I want to do..

You know how the file copy dialog boxes in explorer show an animated image
as the files copy? Well that is an AVI file with a magenta background color. The background color becomes transparent when played on a form. How can I do this in C# on a WinForm? Thanks

Nov 16 '05 #2
there is a win32 api do this... it's in many applications and in explorer
with out any references to directx..

here is an example in VB6

http://www.vbaccelerator.com/home/VB...er/article.asp

no clue how to convert it to C# though...


"Michael Mayer [C# MVP]" <mi**@mag37.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
If it's possible, it will be in the managed directx classes. Unfortunately, DirectShow has not been wrapped with managed classes (there is an
AudioVideoPlayback class, but I doubt it has the features you need).

The newsgroup for this library is:
microsoft.public.win32.programmer.directx.managed

Hope that helps you get started...

--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/
"Brian Henry" <brian.henry[nospam]@adelphia.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Here is what I want to do..

You know how the file copy dialog boxes in explorer show an animated image as the files copy? Well that is an AVI file with a magenta background color.
The background color becomes transparent when played on a form. How can

I do
this in C# on a WinForm? Thanks


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2660
by: laredotornado | last post by:
Hello, I want to play an audio file embedded on my page by clicking on an audio image and the page change to a new page. Is there a cross-browser Javascript way to do this? Right now the code I...
2
4453
by: Dave | last post by:
Hi, I am writing a c# application that using a directshow to play file and display it on my C# gui, its work just fine but when i try to open another thread in my c# application the file stop...
7
6412
by: Lee Moody | last post by:
I just want quick and easy way to play a .wav file out the standard sound device. It could even be as simple as activating a sound assigned to an existing windows sound event. Any suggestions?...
0
2449
by: Raven Jones | last post by:
Heya all, I'm working on a web-based application (using ASP.NET and C# on .NET 1.1.4322, supporting only IE6 for Windows) that allows for file uploads. Screen real estate is at a premium, so I...
6
10037
by: Johnny J. | last post by:
Can anybody get me started on how to play an FLV file? Like you play e.g. mpeg files using the wmplayer control, I want a box on my form where the FLV is played and the playback is controlled byt...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7060
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4501
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.