代码如下Dim Snow(1000, 2), Amounty As IntegerPrivate Sub Form_Load()
    Form1.Show
    DoEvents
    Randomize: Amounty = 325
    For J = 1 To Amounty
        Snow(J, 0) = Int(Rnd * Form1.Width)
        Snow(J, 1) = Int(Rnd * Form1.Height)
        Snow(J, 2) = 10 + (Rnd * 20)
    Next J
    
    Do While Not (DoEvents = 0)
        For LS = 1 To 10
            For I = 1 To Amounty
                OldX = Snow(I, 0): OldY = Snow(I, 1): Snow(I, 1) = Snow(I, 1) + Snow(I, 2)
                If Snow(I, 1) > Form1.Height Then
                    Snow(I, 1) = 0
                    Snow(I, 2) = 5 + (Rnd * 30)
                    Snow(I, 0) = Int(Rnd * Form1.Width)
                    OldX = 0
                    OldY = 0
                End If
                Coloury = 8 * (Snow(I, 2) - 10)
                Coloury = 60 + Coloury
                PSet (OldX, OldY), QBColor(0)
                PSet (Snow(I, 0), Snow(I, 1)), RGB(Coloury, Coloury, Coloury)
            Next I
        Next LS
    Loop
    End
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End
End Sub

解决方案 »

  1.   

    可是form不就是?
    我改成form也不成~~~
      

  2.   

    你把这个Form的名字改成Form1不就行了。
      

  3.   

    我会了
    Dim snow(1000,2) as integer
    Dim Amounty as integer
    Private Sub Form_Load()
    Dim j As Integer
     Dim LS As Integer
     Dim i As Integer
     Form1.Show
        DoEvents
        Randomize
        Amounty = 325
        For j = 1 To Amounty
        snow(j, 0) = Int(Rnd * Form1.Width)
        snow(j, 1) = Int(Rnd * Form1.Height)
        snow(j, 2) = 10 + (Rnd * 20)
        Next j
        Do While Not (DoEvents = 0)
        For LS = 1 To 10
         For i = 1 To Amounty
          snow(i, 1) = snow(i, 1) + snow(i, 2)
          If snow(i, 1) >Form1.Height Then
            snow(i, 1) = 0: snow(i, 2) = 2 + (Rnd * 30)
            snow(i, 0) = Int(Rnd * 我的程序.Width)
          End If
         Circle (snow(i, 0), snow(i, 1)), 15 * Rnd, RGB(255, 255, 255)
         Next i
         Form1.Cls
        Next LS
        Loop
        End
    End Sub
    上面的那位,你再式式