SlideShow C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zwartfrak
    New Member
    • May 2009
    • 2

    SlideShow C#

    I am making a program for a slideshow in C#
    this is the code that causes problems :
    Code:
        private void btnPlay_Click(object sender, EventArgs e)
            {
                for (int a = 0; a < iAmountOfImages; a++)
                {
                    pbSlideshow.SizeMode = PictureBoxSizeMode.Zoom;
                    pbSlideshow.Image = new Bitmap(sImage[a]);
                    System.Threading.Thread.Sleep(2000);
                }
            }
    The problem is: It shows my first image: sImage[0] and after some time, it shows the last image, but i don't see the other images.
    Last edited by PRR; May 22 '09, 04:52 AM. Reason: Please post code in [code] [/code] tags.
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    If its asp.net page you refer this article by Scott Mitchell .
    And if your app is win app then you can use timers...

    Comment

    • zwartfrak
      New Member
      • May 2009
      • 2

      #3
      I have already solved the problem with a timer.

      thx for the answer

      Comment

      • ady4u
        New Member
        • Oct 2009
        • 1

        #4
        Originally posted by zwartfrak
        I have already solved the problem with a timer.

        thx for the answer
        hi can you please share how you fixed it?

        Comment

        Working...