1 private Sub Timerl_Timer()
Const pi=3.1415926
Scale (-11,11)-(11,-11)
DrawWidth=3
For i=1To 10 Step1
r=Fis(255*Rnd)
g=Fis(255*Rnd)
b=Fis(255*Rnd)
Line (i-10,10-i)-(10-i,i-10),RGB(r,g,b),BF
Next
For i=1 To 10 Step 1
r=Fis(255*Rnd)
g=Fis(255*Rnd)
b=Fis(255*Rnd)
Circle (0,0),(10-i),RGB(r,g,b)
Next
End Sub2 Private Sub Command1_Click()
Timerl.Enabled =True
End Sub
Private Sub Command2_Click()
Timerl.Enabled =False
End Sub
Private Sub Timer1_Timer()
Static Sf As Boolean
If Imagel.Left<10 Then
Sf="True"
End If
If Imagel.Left>4000 Then
Sf="False"
End If
If Sf="True" Then
Else
Call Sx
End If
End Sub
Private Sub Sx()
Imagel.Left=Imagel.left-100
End Sub
Private Sub Zx()
Imagel.Left=Imagel.left+100
End Sub
Const pi=3.1415926
Scale (-11,11)-(11,-11)
DrawWidth=3
For i=1To 10 Step1
r=Fis(255*Rnd)
g=Fis(255*Rnd)
b=Fis(255*Rnd)
Line (i-10,10-i)-(10-i,i-10),RGB(r,g,b),BF
Next
For i=1 To 10 Step 1
r=Fis(255*Rnd)
g=Fis(255*Rnd)
b=Fis(255*Rnd)
Circle (0,0),(10-i),RGB(r,g,b)
Next
End Sub2 Private Sub Command1_Click()
Timerl.Enabled =True
End Sub
Private Sub Command2_Click()
Timerl.Enabled =False
End Sub
Private Sub Timer1_Timer()
Static Sf As Boolean
If Imagel.Left<10 Then
Sf="True"
End If
If Imagel.Left>4000 Then
Sf="False"
End If
If Sf="True" Then
Else
Call Sx
End If
End Sub
Private Sub Sx()
Imagel.Left=Imagel.left-100
End Sub
Private Sub Zx()
Imagel.Left=Imagel.left+100
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货