CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2012

    Question Backgroundless image over .avi

    VS 2010, .NET Framework 4.0

    I am using directx sdk to display an .avi and over this I need to display an backgroundless image (a number between 0 and 9). The effect would be the movie playing behind the numbers.

    I tried using pictureBox, but VS just adds a white background no matter what I do (the image has a transparent background, I tried setting the pictureBox background color to transparent). Maybe pictureBox is just not the way... is there any way to do this?

  2. #2
    Join Date
    Jun 2008

    Re: Backgroundless image over .avi

    Well, I'm not sure why you aren't using WPF for a new Windows UI project, but if you are intent on WinForms then you need to educate yourself a bit.

    WinForms has no concept of transparency. You don't get it for free anyway, you need to do some work and simulate it by drawing underlying controls inside their (transparent) parent. Here, this should help:


    As an aside, WPF give syou this for free.
    If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.

    Yes; I have a blog too - http://the-angry-gorilla.com/

  3. #3
    Join Date
    May 2012

    Re: Backgroundless image over .avi

    Problem solved: Sorry for the late reply but the problem was solved last year by using WPF. Thank you BigEd781.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.