Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture disppears at the form
Message
From
14/07/1999 12:52:34
 
 
To
14/07/1999 07:24:46
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00241188
Message ID:
00241342
Views:
19
Hi victor:
try this code
define moveup as boolean true in your form load

vb needs to know that the picture is moving un or down
you will need to do something similar for the
left, right, and bottom boundaries.
then try this

If moveup Then
Picture1.Move Picture1.Left - 200, Picture1.Top - 200
If Picture1.Top <= 0 Then moveup = False
Else
Picture1.Move Picture1.Left - 200, Picture1.Top + 200
End If

regards


--------------------
Hi,
I have this code on the timer event.

Picture1.Move Picture1.Left - 200, Picture1.Top - 200

' If the graphic reaches the top edge of the form, move it to the 'left and down.

'The code at the bottom doesn't work, the picture just move to the 'left and then disappears.

If Picture1.Top <= 0 Then
Picture1.Move Picture1.Left - 200, Picture1.Top + 200
End If
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform