小声问一下,楼主是否已经回答了偶的问题拉?
这是下雪的源代码,对象窗口不用设置的
Dim Snow(1000, 2), Amounty As Integer
Dim x As Long
Private Sub Form_Load()
Me.Show
DoEvents
Randomize
Amounty = 825
For j = 1 To Amounty
Snow(j, 0) = Int(Rnd * Me.Width)
Snow(j, 1) = Int(Rnd * Me.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) > Me.Height Then
Snow(i, 1) = 0: Snow(i, 2) = 5 + (Rnd * 30)
Snow(i, 0) = Int(Rnd * Me.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)
unload me
End Sub
该改哪里呢?