Results 1 to 2 of 2

Thread: [2008] Timer problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Location
    London United Kingdom
    Posts
    334

    Post [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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width