(6 )窗体如图所示,其中汽车是名称为 Image1 的图像框,命令按钮的名称为 Command1, 计时器的名称 为Timer1, 直线的名称为 Line1 。 程序运行时 , 单击命令按钮 , 则汽车每 0.1 秒向左移动 100 , 车头到达左边的直线时停止移动。请填空完成下面的属性设置和程序,以便实现上述功能。

<img src='https://img2.soutiyun.com/ask/uploadfile/10839001-10842000/c8a6df29785581e4e663f0771ed5c40f.gif' /> 1 Timer1 的 Interval 属性的值应事先设置为【 6 】 2 Private Sub Command1_Click() Timer1.Enabled=True End Sub Private Sub Timer1_Timer() If Image1.Left>= 【 7 】 Then Image1.Left= 【 8 】 -100 End If End Sub

时间:2023-03-28 03:45:17

相似题目