Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picture disppears at the form
Message
De
14/07/1999 12:52:34
 
 
À
14/07/1999 07:24:46
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00241188
Message ID:
00241342
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform