CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Transparent background

    I have this problem, when i use an imagebox, i can use images with transparent backgrounds, however, when i trie to change size, or move them, they flicker. So I tried this using a picturebox.
    Result: the flickering is gone, but when i use transparent pictures, the background color of the picturebox shines trhough in stead of the color below the picturebox (this is another image).

    What I want to know is if there is a way to set the background color of the picturebox to transparent, I've lookt through the properties of the picturebox, but I can't find anything that can accomplishes that.

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  2. #2
    Guest

    Re: Transparent background

    If you do a search at www.planet-source-code.com for "Transparent" there is code there that makes a form transparent.
    If you change the parameter of the MakeTransparent procedure from form to picturebox it should do the job for you.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured