Prevent transparency of controls on transparent forms

G

gourmete

Hi!

I have a custom shaped form, e.g. the transparency key of the form is
set.
On it I have a control that plays video clips. The problem is, that
windows tries to analyze every single frame of the video clip for the
transparent color key. That does not only slow the playback down, it is
also unwanted, because I dont´t want transparent regions in the video,
of course.
Is there a way to tell windows that even though the form is
transparent, the video playback control is not?

Thank you very much!
 
C

Chris Dunaway

gourmete said:
I have a custom shaped form, e.g. the transparency key of the form is
set.
On it I have a control that plays video clips. The problem is, that
windows tries to analyze every single frame of the video clip for the
transparent color key. That does not only slow the playback down, it is
also unwanted, because I dont´t want transparent regions in the video,
of course.
Is there a way to tell windows that even though the form is
transparent, the video playback control is not?

I think your best bet is to drop the TransparencyKey and create your
shaped form using a Region and GraphicsPath. Then assign the region to
the Form's region property.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top