单选题
窗体上有1个名称为Text1的文本框;1个名称为Timer1的计时器控件,其Interval属性值为5000,Enabled属性值是True。Timer1的事件过程如下:
Private Sub Timer1_Timer()
Static flag As Integer
If flag=0 Then
flag=1:flag=-flag
End If
If flag=1 Then
Text1.ForeColor=&HFF&"&HFF&为红色
Else
Text1.ForeColor=&HC000&"&HC000&为绿色
End If
End Sub
以下叙述中正确的是