|
|
Title | Display a GIF with a transparent background without flashing |
Keywords | GIF, display GIF, flash |
Categories | Graphics |
|
|
If you load a GIF with a transparent background directly from a file, it flashes annoyingly. To prevent this, load it into a hidden PictureBox first. Then set the visible Image or PictureBox's Picture property to the hidden PictureBox's Image property.
|
|
Private Sub cmdLoadGIFIndirect_Click()
picHidden.Picture = LoadPicture(App.Path & _
"\FlashDem.gif")
imgVisible.Picture = picHidden.Image
End Sub
|
|
|
|
|
|