Antoine
Regular
Dear all,
I have a slight problem. I want to make the background of a picturebox transparent. This because I show icons in this picturebox and there is an image underneath. So in case there is an icon with transparent things in it I want to see the background through it, and not a grey "box". How is this possible ?
When setting the .backcolor = Transparent, it doesn't work. Also during runtime with the .fromargb it doesn't work. Problem is that I need to click on this icon so it needs to be a clickable component.
I also tried to use SetStyle(ControlStyles.SupportsTransparentBackColor, True) but this is also not working. Who can help me please ?
Thanks in advance
Antoine
[edit]
I just found out that when I am doing this with the backgroundimage of a groupbox that this is working properly, but when using this on top of an image from a picturebox it's not., neither on a backgroundimage of a picture box.
I have a slight problem. I want to make the background of a picturebox transparent. This because I show icons in this picturebox and there is an image underneath. So in case there is an icon with transparent things in it I want to see the background through it, and not a grey "box". How is this possible ?
When setting the .backcolor = Transparent, it doesn't work. Also during runtime with the .fromargb it doesn't work. Problem is that I need to click on this icon so it needs to be a clickable component.
I also tried to use SetStyle(ControlStyles.SupportsTransparentBackColor, True) but this is also not working. Who can help me please ?
Thanks in advance
Antoine
[edit]
I just found out that when I am doing this with the backgroundimage of a groupbox that this is working properly, but when using this on top of an image from a picturebox it's not., neither on a backgroundimage of a picture box.
Last edited: