Wednesday, May 2, 2012

Continues Images


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }
        int i = 0;
        private void timer1_Tick(object sender, EventArgs e)
        {
           
            if (i < imageList1.Images.Count)
            {
                pictureBox1.Image = imageList1.Images[i];
                i++;
                progressBar1.Value += (100 / imageList1.Images.Count);


            }
            else
            {
                timer1.Stop();
            }
        }
    }
}

No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...