I'm trying to make a shape (RedBall), bounce around inside a frame on a form but I'm not sure how to make the IF statement. Any help appreciated.
This is the code I'm using at the mo
If (RedBall.Top < 2400 And RedBall.Left < 3960) Then
RedBall.Top = RedBall.Top + 30
RedBall.Left = RedBall.Left + 30
If (RedBall.Top > 0 And RedBall.Left > 0) Then
RedBall.Top = RedBall.Top - 30
RedBall.Left = RedBall.Left - 30