在VB里对字体颜色进行循环,循环语句哪里错了,老是说我控件数组元素1不存在
PrivateSubTimer1_Timer()DimiAsIntegerb=Label1(0).ForeColorFori=0To7Label1(i).ForeColo...
Private Sub Timer1_Timer()
Dim i As Integer
b = Label1(0).ForeColor
For i = 0 To 7
Label1(i).ForeColor = Label1(i + 1).ForeColor
Next
Label1(8).ForeColor = b
End Sub 展开
Dim i As Integer
b = Label1(0).ForeColor
For i = 0 To 7
Label1(i).ForeColor = Label1(i + 1).ForeColor
Next
Label1(8).ForeColor = b
End Sub 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询