早教吧 育儿知识 作业答案 考试题库 百科 知识分享

一个非常简单的VB问题:PrivateSubTimer1Timer()'右壁弹回IfShape1.Left+Shape1.Width>=Picture1.Left+Picture1.WidthThenShape1.Left=Picture1.Left+Picture1.Width-Shape1.Widthxstep=-xstepEndIf'左壁弹回IfShape1.Left

题目详情
一个非常简单的VB问题:Private Sub Timer1_Timer()'右壁弹回If Shape1.Left + Shape1.Width >= Picture1.Left + Picture1.Width Then Shape1.Left = Picture1.Left + Picture1.Width - Shape1.Width x_step = -x_step End If'左壁弹回If Shape1.Left
▼优质解答
答案和解析
像判断left和width一样判断top 和 height