|
-
Jan 4th, 2009, 06:57 AM
#1
Thread Starter
Hyperactive Member
[2008] Timer problem
Hi, I am making a photo album and I would like the pictures which will be populated in a dataset to display one picture after every 10 seconds but I am stock on how to set the timer so I would be grateful if any one could help me on how to set the timer so that the pictures would be display in every 10 seconds. thanx
-
Jan 4th, 2009, 07:12 AM
#2
Re: [2008] Timer problem
Add a Timer, set the Interval to 10,000 (milliseconds) and, in the Tick event handler, change the Image. I would suggest pre-loading all images into an array or collection and then you simply increment the index each Tick. If the index gets to the end you just wrap it back to zero.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|