simple method for progress bar in dot net



This is A C# Practice 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 dataentry
        {
            public partial class Form3 : Form
            {
                public Form3()
                {
                    InitializeComponent();
                }

                private void Form3_Load(object sender, EventArgs e)
                {
                    
                }

                private void timer1_Tick(object sender, EventArgs e)
                {
                    this.progressBar1.Increment(1);
                }

                private void button11_Click(object sender, EventArgs e)
                {
                    this.timer1.Start();
                }

                private void Form3_FormClosed(object sender, FormClosedEventArgs e)
                {
                    this.Hide();
                    //Form1 F1 = new Form1();
                    //F1.Show();
                }
            }
        }


Video For Result:



Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Facebook Comment