单项选择题
窗体上有一个名称为Picture1的图片框和一个名称为Timer1的计时器控件,并有下面程序代码:
Dim x%,y%
Private Sub Form_Load()
x=Picture1.Width*2
y=Picture1.Height*2
Timer1.Enabled=True
Timer1.Interval=100
End Sub
Private Sub Timer1_Timer()
If Picture1.Width<x Or Picture1.Height<y Then
Picture1.Width=Picture1.Width+3
Picture1.Height=Picture1.Height+3
End If
End Sub
程序运行后产生的效果是______。
A.图片框尺寸不断变大,直到其高和宽都增加到原来的2倍为止
B.图片框尺寸不断变大,并一直增加下去
C.图片框尺寸不断变大,直到其高和宽都增加到原来的3倍为止
D.界面没有产生任何变化