被男同桌扒衣袭胸亲吻:帮忙看下这个程序 哪错了?

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 14:44:42
Dim i As Integer, j As Integer
Private Sub Form1_Load()
i = o
For j = 0 To 11
Label1(j * 3).ForeColor = RGB(0, 255, 0)
Label1(j * 3).ForeColor = RGB(0, 0, 255)
Label1(j * 3).ForeColor = RGB(255, 0, 0)
Next j
End Sub

Private Sub Timer1_Timer()
If i = 36 Then
i = 0
End If
i = i + 1
For j = 0 To 35
Label1(j).Visible = False
Next j
If i Mod 3 = 2 Then
For j = 0 To 11
Label1(j * 3 + 2).Visible = True
Next j
Else
If i Mod 3 = 1 Then
For j = 0 To 11
Label(j * 3 + 2).Visible = True
Next j
Else
For j = 0 To 11
Label1(j * 3).Visible = True
Next j
End If
End If
End Sub
Label1(j * 3).ForeColor = RGB(0, 255, 0)
Label1(j * 3+1).ForeColor = RGB(0, 0, 255)
Label1(j * 3+2).ForeColor = RGB(255, 0, 0)
我做的这个是用35个label(名字都是★) 拼成一个心形
35个★会呈现出不同颜色并闪动```
是不是还有什么没设置?????

For j = 0 To 11
Label1(j * 3).ForeColor = RGB(0, 255, 0)
Label1(j * 3 + 1).ForeColor = RGB(0, 0, 255)
Label1(j * 3 + 2).ForeColor = RGB(255, 0, 0)
Next j

是不是要这样?

For j = 0 To 11
Label1(j * 3).ForeColor = RGB(0, 255, 0)
Label1(j * 3).ForeColor = RGB(0, 0, 255)
Label1(j * 3).ForeColor = RGB(255, 0, 0)
Next j

这三句,只有最后一句有用啊,你这个什么意思啊

If i Mod 3 = 2 Then
For j = 0 To 11
Label1(j * 3 + 2).Visible = True
Next j
Else
If i Mod 3 = 1 Then
For j = 0 To 11
Label(j * 3 + 2).Visible = True
Next j

上面两个条件的结果相同,分开写干么?