Hello guys. I'm play a vide with Microsoft.DirectX.AudioVideoPlayback in C#.
i'm tried to 'freeze' the last scene from video. I don't succeed, so I decide to show a picture with last sceen. And I don't succeed again.
I have this code:

private void button1_Click(object sender, EventArgs e)
        {
            Xvid.Owner = c1; //c1 is the panel, Xvid is the video;
            c1.Size = new Size(80, 80);
            Xvid.Play();
            Xvid.Ending += new EventHandler(c1back);
            Xvid.Audio.Ending += new EventHandler(c1back); 
        }

private void c1back(object sender, EventArgs e)
        {
            c1.BackgroundImage = Xpic;
            c1.BackgroundImageLayout = ImageLayout.Stretch;
        }

Anybody knows how can i do? HEELP :(

Well the video player is still on top of the panel, so of course you can't see what's on the panel. Try hiding/removing the video player.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.