Private Sub Timer1_Timer()
If MeLeft < 0 Then MeLeft = 0
If MeTop < 0 Then MeTop = 0
If MeLeft + MeWidth > ScreenWidth Then
MeLeft = ScreenWidth - MeWidth
End If
If MeTop + MeHeight > ScreenHeight Then
MeTop = ScreenHeight - MeHeight
End If
End Sub
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)