Connecting Tech Pros Worldwide Help | Site Map

SlideShow C#

Newbie
 
Join Date: May 2009
Posts: 2
#1: May 21 '09
I am making a program for a slideshow in C#
this is the code that causes problems :
Expand|Select|Wrap|Line Numbers
  1.     private void btnPlay_Click(object sender, EventArgs e)
  2.         {
  3.             for (int a = 0; a < iAmountOfImages; a++)
  4.             {
  5.                 pbSlideshow.SizeMode = PictureBoxSizeMode.Zoom;
  6.                 pbSlideshow.Image = new Bitmap(sImage[a]);
  7.                 System.Threading.Thread.Sleep(2000);
  8.             }
  9.         }
  10.  
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.
PRR PRR is offline
Moderator
 
Join Date: Dec 2007
Location: India
Posts: 699
#2: May 22 '09

re: SlideShow C#


If its asp.net page you refer this article by Scott Mitchell .
And if your app is win app then you can use timers...
Newbie
 
Join Date: May 2009
Posts: 2
#3: May 22 '09

re: SlideShow C#


I have already solved the problem with a timer.

thx for the answer
Newbie
 
Join Date: Oct 2009
Posts: 1
#4: Oct 16 '09

re: SlideShow C#


Quote:

Originally Posted by zwartfrak View Post

I have already solved the problem with a timer.

thx for the answer

hi can you please share how you fixed it?
Reply

Tags
c sharp, pauze, problem, slide show, slideshow