Q: GIF image on a form



Hi

I have a form on which I have a picture box. I have placed a GIF as the
image for this picture box. The GIF has a transparent background.

If I change the background color of the form, then the GIF appears on the
form correctly i.e. the background of the form shows through the transparent
part of the gif.

However, if I place a BackgroundImage on the form, the transparent part of
the form does not show the BackgroundImage of the form, rather is shows the
back color of the form. This obviously make the GIF not to be "transparent".

Can anybody help?

Thanks

G


.



Relevant Pages

  • Re: GIF image on a form
    ... Protected Overrides Sub OnPaintBackground ... better off looking for some picture control to take care of that for you. ... Just use DrawImage to render your GIF on the control ... The GIF has a transparent background. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: My browser shuts down when attempting to view my website
    ... And you helping me with the Publisher issues gives me more time. ... When you insert an image that is say 1600x1200 pixels into your Publisher page, and then resize the picture frame in Publisher to fit your design, the original image displays at your custom size, but the actual image is still the original, and the original size and dimension. ... The Publisher 2003 compression feature, in theory resamples and resizes, and thus compresses the original image and makes a copy of the display size. ... It will sometimes make gif, jp and even png copies of your inserted image, and then, once again in theory, serve up the best picture depending upon the browser that the viewer uses. ...
    (microsoft.public.publisher.webdesign)
  • Re: GIF image on a form
    ... What you need to do is make a user control and then modify it's transparent ... Just use DrawImage to render your GIF on the control surface ... I have a form on which I have a picture box. ... The GIF has a transparent background. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: GIF image on a form
    ... Protected Overrides Sub OnPaintBackground ... better off looking for some picture control to take care of that for you. ... Just use DrawImage to render your GIF on the control ... The GIF has a transparent background. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: GIF image on a form
    ... Protected Overrides Sub OnPaintBackground ... better off looking for some picture control to take care of that for you. ... Just use DrawImage to render your GIF on the control ... The GIF has a transparent background. ...
    (microsoft.public.dotnet.languages.vb)