Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
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-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated