<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2F2D_Graphics%2FAnimation</id>
		<title>VB.Net Tutorial/2D Graphics/Animation - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2F2D_Graphics%2FAnimation"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Animation&amp;action=history"/>
		<updated>2026-04-06T03:24:51Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Animation&amp;diff=3287&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Animation&amp;diff=3287&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Animation&amp;diff=3288&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Animation&amp;diff=3288&amp;oldid=prev"/>
				<updated>2010-05-26T12:54:50Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Animator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
public class Animator&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    Private img As Bitmap&lt;br /&gt;
    Dim currentlyAnimating As Boolean = False&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(536, 349)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Form1&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        img = New Bitmap(&amp;quot;yourfile.jpg&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub AnimateImage()&lt;br /&gt;
        If Not currentlyAnimating Then&lt;br /&gt;
            ImageAnimator.Animate(img, New EventHandler(AddressOf OnFrameChanged))&lt;br /&gt;
            currentlyAnimating = True&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub &amp;quot;AnimateImage&lt;br /&gt;
&lt;br /&gt;
    Private Sub OnFrameChanged(ByVal o As Object, ByVal e As EventArgs)&lt;br /&gt;
        Me.Invalidate()&lt;br /&gt;
    End Sub &amp;quot;OnFrameChanged&lt;br /&gt;
    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)&lt;br /&gt;
        AnimateImage()&lt;br /&gt;
        ImageAnimator.UpdateFrames()&lt;br /&gt;
        e.Graphics.DrawImage(Me.img, New Point(0, 0))&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Program that animates a series of images==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
public class AnimationBasedOnTimer&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New FrmLogoAnimator)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class FrmLogoAnimator&lt;br /&gt;
   Inherits System.Windows.Forms.Form&lt;br /&gt;
   Private mImages As ArrayList = New ArrayList()&lt;br /&gt;
   Private mCount As Integer = 1&lt;br /&gt;
   Public Sub New()&lt;br /&gt;
      MyBase.New()&lt;br /&gt;
      InitializeComponent()&lt;br /&gt;
      Dim i As Integer&lt;br /&gt;
      For i = 0 To 29&lt;br /&gt;
         mImages.Add(Image.FromFile( i &amp;amp; &amp;quot;.gif&amp;quot;))&lt;br /&gt;
      Next&lt;br /&gt;
      logoPictureBox.Image = CType(mImages(0), Image)&lt;br /&gt;
      logoPictureBox.Size = logoPictureBox.Image.Size&lt;br /&gt;
   End Sub &amp;quot; New&lt;br /&gt;
   Friend WithEvents timer As System.Windows.Forms.Timer&lt;br /&gt;
   Friend WithEvents logoPictureBox As _&lt;br /&gt;
      System.Windows.Forms.PictureBox&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
   &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
   Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
      If disposing Then&lt;br /&gt;
         If Not (components Is Nothing) Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
         End If&lt;br /&gt;
      End If&lt;br /&gt;
      MyBase.Dispose(disposing)&lt;br /&gt;
   End Sub&lt;br /&gt;
   Private components As System.ruponentModel.IContainer&lt;br /&gt;
   &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
   &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
   &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
   &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
   &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
      Me.ruponents = New System.ruponentModel.Container()&lt;br /&gt;
      Me.timer = New System.Windows.Forms.Timer(Me.ruponents)&lt;br /&gt;
      Me.logoPictureBox = New System.Windows.Forms.PictureBox()&lt;br /&gt;
      Me.SuspendLayout()&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;Timer&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.timer.Enabled = True&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;logoPictureBox&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.logoPictureBox.Location = New System.Drawing.Point(32, 24)&lt;br /&gt;
      Me.logoPictureBox.Name = &amp;quot;logoPictureBox&amp;quot;&lt;br /&gt;
      Me.logoPictureBox.Size = New System.Drawing.Size(168, 88)&lt;br /&gt;
      Me.logoPictureBox.TabIndex = 0&lt;br /&gt;
      Me.logoPictureBox.TabStop = False&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;Form1&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
      Me.ClientSize = New System.Drawing.Size(232, 141)&lt;br /&gt;
      Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.logoPictureBox})&lt;br /&gt;
      Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
      Me.Text = &amp;quot;LogoAnimator&amp;quot;&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
   Private Sub timer_Tick(ByVal sender As System.Object, _&lt;br /&gt;
      ByVal e As System.EventArgs) Handles timer.Tick&lt;br /&gt;
      mCount = (mCount + 1) Mod 30&lt;br /&gt;
      logoPictureBox.Image = CType(mImages(mCount), Image)&lt;br /&gt;
   End Sub &lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Scrolling Text by Timer==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Windows.Forms&lt;br /&gt;
public class ScrollingText&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    Friend WithEvents Label1 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents Button1 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Button2 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Button3 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Timer1 As System.Windows.Forms.Timer&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.ruponents = New System.ruponentModel.Container&lt;br /&gt;
        Me.Label1 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.Button1 = New System.Windows.Forms.Button&lt;br /&gt;
        Me.Button2 = New System.Windows.Forms.Button&lt;br /&gt;
        Me.Button3 = New System.Windows.Forms.Button&lt;br /&gt;
        Me.Timer1 = New System.Windows.Forms.Timer(Me.ruponents)&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label1.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 15.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.Label1.Location = New System.Drawing.Point(32, 32)&lt;br /&gt;
        Me.Label1.Name = &amp;quot;Label1&amp;quot;&lt;br /&gt;
        Me.Label1.Size = New System.Drawing.Size(216, 24)&lt;br /&gt;
        Me.Label1.TabIndex = 0&lt;br /&gt;
        Me.Label1.Text = &amp;quot;Scrolling Text&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button1.Location = New System.Drawing.Point(24, 80)&lt;br /&gt;
        Me.Button1.Name = &amp;quot;Button1&amp;quot;&lt;br /&gt;
        Me.Button1.Size = New System.Drawing.Size(72, 24)&lt;br /&gt;
        Me.Button1.TabIndex = 1&lt;br /&gt;
        Me.Button1.Text = &amp;quot;Start&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button2.Location = New System.Drawing.Point(112, 80)&lt;br /&gt;
        Me.Button2.Name = &amp;quot;Button2&amp;quot;&lt;br /&gt;
        Me.Button2.Size = New System.Drawing.Size(64, 24)&lt;br /&gt;
        Me.Button2.TabIndex = 2&lt;br /&gt;
        Me.Button2.Text = &amp;quot;Stop&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button3.Location = New System.Drawing.Point(192, 80)&lt;br /&gt;
        Me.Button3.Name = &amp;quot;Button3&amp;quot;&lt;br /&gt;
        Me.Button3.Size = New System.Drawing.Size(72, 24)&lt;br /&gt;
        Me.Button3.TabIndex = 3&lt;br /&gt;
        Me.Button3.Text = &amp;quot;Exit&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Timer1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Timer1.Interval = 300&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 150)&lt;br /&gt;
        Me.Controls.Add(Me.Button3)&lt;br /&gt;
        Me.Controls.Add(Me.Button2)&lt;br /&gt;
        Me.Controls.Add(Me.Button1)&lt;br /&gt;
        Me.Controls.Add(Me.Label1)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Scroll Text&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;
        Do While Label1.Text.Length &amp;lt; 13&lt;br /&gt;
            Label1.Text = Label1.Text &amp;amp; &amp;quot; &amp;quot;&lt;br /&gt;
        Loop&lt;br /&gt;
        Label1.AutoSize = True&lt;br /&gt;
        Timer1.Start()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;br /&gt;
        Timer1.Stop()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click&lt;br /&gt;
        End&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;br /&gt;
        Label1.Text = Microsoft.VisualBasic.Right(Label1.Text, 1) &amp;amp; Microsoft.VisualBasic.Left(Label1.Text, Label1.Text.Length - 1)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Snow Animation==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&amp;quot;Visual Basic.Net JingCai Programming 100 Examples&lt;br /&gt;
&amp;quot;Author: Yong Zhang&lt;br /&gt;
&amp;quot;Publisher: Water Publisher China&lt;br /&gt;
&amp;quot;ISBN: 750841156&lt;br /&gt;
&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class Snow&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox&lt;br /&gt;
    Friend WithEvents Timer1 As System.Windows.Forms.Timer&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.ruponents = New System.ruponentModel.Container&lt;br /&gt;
        Me.PictureBox1 = New System.Windows.Forms.PictureBox&lt;br /&gt;
        Me.Timer1 = New System.Windows.Forms.Timer(Me.ruponents)&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;PictureBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.PictureBox1.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.PictureBox1.Location = New System.Drawing.Point(0, 0)&lt;br /&gt;
        Me.PictureBox1.Name = &amp;quot;PictureBox1&amp;quot;&lt;br /&gt;
        Me.PictureBox1.Size = New System.Drawing.Size(292, 266)&lt;br /&gt;
        Me.PictureBox1.TabIndex = 0&lt;br /&gt;
        Me.PictureBox1.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Timer1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Timer1.Enabled = True&lt;br /&gt;
        Me.Timer1.Interval = 10&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 266)&lt;br /&gt;
        Me.Controls.Add(Me.PictureBox1)&lt;br /&gt;
        Me.WindowState = System.Windows.Forms.FormWindowState.Maximized&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Dim number, x(), y(), v(), s() As Integer&lt;br /&gt;
    Dim t As Random = New Random&lt;br /&gt;
    Dim g As System.Drawing.Graphics&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        PictureBox1.Location = Me.Location&lt;br /&gt;
        PictureBox1.Size = Me.Size&lt;br /&gt;
        PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage&lt;br /&gt;
        snow()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub snow()&lt;br /&gt;
        number = 2000&lt;br /&gt;
        ReDim x(number - 1)&lt;br /&gt;
        ReDim y(number - 1)&lt;br /&gt;
        ReDim v(number - 1)&lt;br /&gt;
        ReDim s(number - 1)&lt;br /&gt;
        Dim i As Integer&lt;br /&gt;
        For i = 0 To number - 1&lt;br /&gt;
            Insnow(i)&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Insnow(ByVal i As Integer)&lt;br /&gt;
        x(i) = t.Next(0, Me.Width - 1)&lt;br /&gt;
        y(i) = t.Next(0, Me.Height * 5 / 7)&lt;br /&gt;
        v(i) = t.Next(5, 20)&lt;br /&gt;
        s(i) = (t.Next(1, 3) * 100 + t.Next(50, 200)) / 100&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint&lt;br /&gt;
        g = PictureBox1.CreateGraphics&lt;br /&gt;
        Dim i As Integer&lt;br /&gt;
        For i = 0 To number - 1&lt;br /&gt;
            g.FillEllipse(Brushes.White, x(i), y(i), s(i), s(i))&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;br /&gt;
        Dim i As Integer&lt;br /&gt;
        For i = 0 To number - 1&lt;br /&gt;
            y(i) = y(i) + v(i)&lt;br /&gt;
            If y(i) &amp;gt;= Me.Height Then&lt;br /&gt;
                Insnow(i)&lt;br /&gt;
            End If&lt;br /&gt;
        Next&lt;br /&gt;
        PictureBox1.Invalidate()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>