Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleDisplay a GIF with a transparent background without flashing
KeywordsGIF, display GIF, flash
CategoriesGraphics
 
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
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated