VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



movement of image according to timer

by Anonymous (267 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 28th August 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

movement of image according to timer

API Declarations


dim y as integer


Rate movement of image according to timer



'put another timer on form
'put a image on form

private sub timer1_timer()
x=x+50
image1.Move x,y
if x=2000 then
image1.visible=false
msgbox"the picture is gone"
end if
end sub
private sub timer2_timer()
form1.backcolor=RGB(rnd*213,rnd*245,rnd*222)
end sub

Download this snippet    Add to My Saved Code

movement of image according to timer Comments

No comments have been posted about movement of image according to timer. Why not be the first to post a comment about movement of image according to timer.

Post your comment

Subject:
Message:
0/1000 characters