标题:这个代码是屏保下雪的代码。如何让这个代码运行,怎么运行,那里运行
取消只看楼主
yuqianping
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2009-11-9
结帖率:0
已结贴  问题点数:0 回复次数:0 
这个代码是屏保下雪的代码。如何让这个代码运行,怎么运行,那里运行
Dim Snow(1000, 2), Amounty As Integer

Private 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
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
Label1.Refresh
Loop
End
End Sub


Private Sub Timer1_Timer()

End Sub


Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End
End Sub
搜索更多相关主题的帖子: 运行 代码 屏保 下雪 
2009-11-09 11:14



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-291609-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.533572 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved