Simple C# Image SlideShow
Project Source Code :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class csharp_slideshow : Form
{
public csharp_slideshow()
{
InitializeComponent();
}
private void csharp_slideshow_Load(object sender, EventArgs e)
{
pictureBox5.Visible = false;
pictureBox4.Visible = false;
pictureBox3.Visible = false;
pictureBox2.Visible = false;
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (pictureBox1.Visible == true)
{
pictureBox1.Visible = false;
pictureBox2.Visible = true;
}
else if (pictureBox2.Visible == true)
{
pictureBox2.Visible = false;
pictureBox3.Visible = true;
}
else if (pictureBox3.Visible == true)
{
pictureBox3.Visible = false;
pictureBox4.Visible = true;
}
else if (pictureBox4.Visible == true)
{
pictureBox4.Visible = false;
pictureBox5.Visible = true;
}
else if (pictureBox5.Visible == true)
{
pictureBox5.Visible = false;
pictureBox1.Visible = true;
}
}
}
}
=> OutPut :
SlideShow In C# |
Download Projects Source Code