Ace Master Posted October 13, 2003 Posted October 13, 2003 I have a timer control on my form and I whant 2 actions each 2 seconds for example : start form > picturebox1.picture = "image1" after 2 sec. :picturebox1.picture = "image2" after 2 sec. picturebox1.picture = "image1" after 2 sec. picturebox1.picture = "image2" etc... I have a slution ..but is a little complicated.Must be a simple way to do that. thanks Quote
hog Posted October 13, 2003 Posted October 13, 2003 In your timer event code do something like: If picture1.picture = "image1" then picture1.picture = "image2" else picture1.picture = "image1" end if Quote My website
PROKA Posted October 14, 2003 Posted October 14, 2003 No need for the picture1.picture = "image1" after the Else statement :) Quote Development & Research Department @ Elven Soft
*Experts* mutant Posted October 14, 2003 *Experts* Posted October 14, 2003 No need for the picture1.picture = "image1" after the Else statement :) There is because if the image was not "image1" then it wouldnt change anymore. The Else checks if there is anything else in there, in this case "image2" so it can set "image1" again as needed. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.