Picture Box doesn't work properly with GIF Files
I have a picture box and when I set a gif file with transparent background it shows some shaded area around it and when I set that image to Image control then that area is transparent. Is there any way I can do this in picture box. Also I want to know how to flip and rotate image in it.
Re: Picture Box doesn't work properly with GIF Files
Welcome to the Forums.
What are your picturebox appearance settings? Like backcolor, appearance, and borderstyle?
If your gif has a transparent background you should be able to see the transparency
when you change between backcolors.
A picturebox shows transparencies automatically.
Re: Picture Box doesn't work properly with GIF Files
I'm setting the back color of the parent and no borders. It works fine when the container in which picture box is kept has a color set at the background but when the container (say form) has a picture then it shows the same shaded area around the image. Please help me as I'm new to this.
Re: Picture Box doesn't work properly with GIF Files
It may be that the picturebox is not a transparent control like the image control. So it
will be showing the gif with a transparent background, which shows the picture box
background through, but the picture box is not transparent itself so the forms background
will not be visible through it. This it just the way the picture box control works.
:(
Re: Picture Box doesn't work properly with GIF Files
Is there any way to make picture box transparent using a usercontorl?
Re: Picture Box doesn't work properly with GIF Files
I'm not sure. What about using the Image control? It has no problems with transparencies.
Re: Picture Box doesn't work properly with GIF Files
I've made a usercontrol with picturebox and Image box. It's transparent now I want to know how to flip and rotate images in it.
Re: Picture Box doesn't work properly with GIF Files
Hello, I am a year 12 software design student currently working on a project and I am looking for a way to make the picture box background transparent and was wondering if I could use the control that you created that does that. I need to be able to use the picture box control to draw lines and shapes and have the scale functions of a regular picture box. Thankyou.
Re: Picture Box doesn't work properly with GIF Files
Sure if this is of any help to you that will be worth it for me. I'll attach it tomorrow for you as I'm not near my machine today.