Image slide show using DotNet, visual & C#
I made this simple mini-project image slide show for my BCA 5th-semester assignment. I have provided the source code.
An icon used: Icon Archive
Functions of this projects
- N number of Images slides show automatically after 1 second.
Toolbox uses
- ImageLists
- PictureBox
- Timer
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 myImageSlideShow
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int count = 0; // counter initialization
private void timer_Tick(object sender, EventArgs e)
{
if (count < 7) // No of images = 7
{
pictureBox1.Image = imageList1.Images[count];
count++;
}
else
{
count = 0; // reset counter
}
}
}
}
Helpful links for you as a dot net developer:
0 Comments
If you have any doubts, please let me know.