Apples vs Oranges. NOT THE SAME...
Printable View
Apples vs Oranges. NOT THE SAME...
I wouldn't have used a PNG file in the fisrt place, as it doesn't support transparancy like GIF formats do. This is not a programmatic problem, it is a design problem IMHO. Open the file in a graphics program, make the white transparant, then, use the GIF file that was output, in your program.
Actually, PNG does support transparency. I use that feature myself all the time. Even more so, while GIF (AFAICT) only supports a one-bit transparency mask or single color index assigned to be transparent, PNG supports a full-blown alpha chanel. (See also: http://en.wikipedia.org/wiki/Compari...hnical_details)
This thread apparently is just about what the title says: a problem with the VB6 picture box control. I can't say much about that myself though, since I'm not using VB6. (Just here for the VBA stuff, you know... :))
Halosar7 : Here's a small vb6 project that show one way to simulate a transparent picturebox
Study it and maybe it could be a solution to your problem