Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

C# Adding an Image with Transparency

Tdata

Sponsor

Okay, for the last hour I have been trying to add a few images that have alpha transparency to a Windows Form. I have been able to show the image, but any place there is Trans, it is Color.Control... Can't figure out why... Note: I am using PictureBoxes to hold the images because I can't seem to get them to draw otherwise.
 
Well, this I'd just use a panel, set it as the background image, and change the background colour to transparent. Works for me.
 

Tdata

Sponsor

Ah, I figured it out... PictureBoxes When set to Color.Transparent, show the Parent's BackColor... Good thing to remember...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top