473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 3166
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.