Wrinkled Paper
Another blog in the bitstream...
blogchalk: Patrick/Male/31-35. Lives in United States/Shelby Township/Celeste Estates and speaks English. Spends 80% of daytime online. Uses a Fast (128k-512k) connection.


Subscribe to "Wrinkled Paper" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

The .NET PictureBox and animated GIFs

I know the the .NET PictureBox can load GIF's, but can it load and display animated GIF?

Yes. Here's a sample (along with an image):

Option Strict On
 Explicit On

Imports System.Windows.Forms
Imports System.Drawing

Public Class Form1
Inherits Form

Public Sub New()
Me.Text = "Animated Gif Test"
      Me.Size = New Size(300,300)

Dim pb As PictureBox = New PictureBox()
      pb.Size = 
New Size(250,250)
      pb.Location = 
New Point(0,0)
      pb.Image = 
New Bitmap("pic1.gif")

End Sub

   <STAThread()> _
Shared Sub Main()
New Form1())
End Sub

Click here to visit the Radio UserLand website. © Copyright 2002 Patrick Steele.
Last update: 8/5/2002; 10:18:18 PM.