
Is that possible?
Thanks in advance
This post has been edited by gr33nb0y: 01 May 2010 - 08:47 PM




Posted 01 May 2010 - 08:57 PM
Posted 01 May 2010 - 09:07 PM
vb5prgrmr, on 01 May 2010 - 07:57 PM, said:
Posted 01 May 2010 - 09:36 PM
Posted 02 May 2010 - 09:34 AM
Posted 03 May 2010 - 06:01 AM
Private Sub mnuStart_Click()
Dim direct As Integer
direct = Fix(4 * Rnd)
Select Case direct
Case 0: dx = -100
dy = -100
Case 1: dx = 100
dy = -100
Case 2: dx = 100
dy = 100
Case 3: dx = -100
dy = 100
End Select
tmrBounce.Enabled = True
mnuStart.Enabled = False
mnuStop.Enabled = True
End
Private Sub tmrBounce_Timer()
Dim tempx As Integer, tempy As Integer
tempx = x + dx
If (tempx + imgBall.Width > imgBox.ScaleWidth) Or (tempx < 0) Then
dx = -dx
Beep
End If
x = x + dx
tempy = y + dy
If (tempy + shpBall.Height > imgBox.ScaleHeight) Or (tempy < 0) Then
dy = -dy
Beep
End If
y = y + dy
shpBall.Move x, y
End Sub
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
