Click here to Skip to main content
15,943,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I am playing a video over a panel using Direct X. I want to place a transparent GIF image over this video.

For this, i created transparent form and placed the transparent GIF image on this form. But, it statrs to flicker.

Is there any good solution so that i can avoid the flicker of video and the image. Further, when i move the panel i am unable to move the transaparent form. Is there any way for this too?

Pls help.
Posted
Updated 14-Jun-10 4:23am
v3

You could try turning double-buffering on in the form.
 
Share this answer
 
Hii !!! How is it possible for "turning double-buffering on in the form"?
 
Share this answer
 
Try it this way (do this in the constructor AFTER the call to InitializeComponent):

this.SetStyle(ControlStyles.AllPaintingInWmPaint | 
              ControlStyles.UserPaint | 
              ControlStyles.DoubleBuffer, true);


BTW, you could have ggogled to find this out for yourself.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900