C# Slowing a Loop

C# Slowing a Loop

C# Slowing a Loop

                                                                                                                                                         

in this c# tutorial we will see how to make a Slowing a Loop and increase the time difference  using C# components used "ListeBox"and  "timer".




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.Windows.Forms;

namespace csharp_slowing_a_boucle
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int i = -1;
        private void button1_Click(object sender, EventArgs e)
        {
            //int j = 0;
            //while (j < listBox1.Items.Count)
            //{
            //    listBox2.Items.Add(listBox1.Items[j].ToString());
            //    j++;
            //}
            timer1.Start();
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            i++;
            if (i >= listBox1.Items.Count)
                timer1.Stop();
            else
            {
                listBox2.Items.Add(listBox1.Items[i].ToString());
                timer1.Interval += 20;
            }
        }
    }
}

C# Image SlideShow

Simple C# Image SlideShow

                                                                                                                                                     

In This C# Code We Will See How To Make An Image SlideShow In C# Programming Language.
components used "PictureBox" and "timer"





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#
SlideShow In C#

c# application of hotel management with code source

c# application of hotel management with code source


Presentation of this application: c# application of hotel management help us to manage customers , booking the state of the room and invoices.
Description of the Database:
The database contains five Tables Client , redervation , Type , Room , invoice 
c# project source code
- The client table have records data on clients, each client is identify by ID (CLI_ID).
- The Reservation table have records data on Reservation, each Reservation is identify by ID (Res_ID).
- The invoice is the same and is identify by ID (FCT_ID).  

Operation: customers
before the client makes Reservations it must be register  in  the database
before delete or update client you  can check up if it exist or not
Operation: Reservation
the same operation that the customer table have.

Operation: invoice
c# project source code

you must give an id to the invoice before insert or generate it and give it a reservation ID
for  download the code source :
you must download them all


if this project does not work change the path of the database

___________________________________________________
scripts and components for a variety of languages and frameworks

Games And Programs