Transparant picturebox
-
Hi, I'm trying to place a control onto a form behind a picturebox. Some area's of this picturebox are defined as transparant. Now I run into the problem of not seeing the controls anymore. What does happen is the transparent area is taking the same color as the form so it looks transparant but not truly is. What am I doing wrong?! thanks in advance Here is some sample code..
// set transparant color Bitmap bmp = new Bitmap(this.ImgBackground.Image); bmp.MakeTransparent(Color.FromArgb(255,0,255)); this.ImgBackground.Image= bmp;
-
Hi, I'm trying to place a control onto a form behind a picturebox. Some area's of this picturebox are defined as transparant. Now I run into the problem of not seeing the controls anymore. What does happen is the transparent area is taking the same color as the form so it looks transparant but not truly is. What am I doing wrong?! thanks in advance Here is some sample code..
// set transparant color Bitmap bmp = new Bitmap(this.ImgBackground.Image); bmp.MakeTransparent(Color.FromArgb(255,0,255)); this.ImgBackground.Image= bmp;