Skip to main content

 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 FinoBank_Application
{
    public partial class frmSplash : Form
    {
        public frmSplash()
        {
            InitializeComponent();
        }
        private void frmSplash_Load(object sender, EventArgs e)
        {
            timer1.Start();
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            progressBar1.Minimum = 0;
            progressBar1.Maximum = 100;
            progressBar1.Value = progressBar1.Value + 1;
            //this.progressBar1.Increment(1);
            if (progressBar1.Value <= 0)
            {
                lblProgress.Text = "Initializing components...............";
            }
            else if (progressBar1.Value <= 10)
            {
                lblProgress.Text = "Loading fonts & Modules...............";
            }
            else if (progressBar1.Value <= 20)
            {
                lblProgress.Text = "Appliying themes and graphics...............";
            }
            else if (progressBar1.Value <= 30)
            {
                lblProgress.Text = "Collecting Information...............";
            }
            else if (progressBar1.Value <= 40)
            {
                lblProgress.Text = "Updating registry...............";
            }
            else if (progressBar1.Value <= 50)
            {
                lblProgress.Text = "Loading icons & Settings...............";
            }
            else if (progressBar1.Value <= 80)
            {
                lblProgress.Text = "Finalizing...............";
            }
            else if (progressBar1.Value <= 90)
            {
                lblProgress.Text = "Almost finished...............";
            }
            else if (progressBar1.Value >= 100)
            {
                timer1.Stop();
                this.Hide();
                frmLogin FrmLogin = new frmLogin();
                FrmLogin.Show();
            }
            else
            {
 
            }
 
 
 
            /*
            this.progressBar1.Increment(2);
            if (progressBar1.Value >= progressBar1.Maximum)
            {
                //lblProgress.Text = progressBar1.Value.ToString() + "%";
                timer1.Stop();
                this.Hide();
                frmLogin FrmLogin = new frmLogin();
                FrmLogin.Show();
                //frmMainWindow FrmMainwindow = new frmMainWindow();
                //FrmMainwindow.Show();
            }
            */
 
            //if (progressBar1.Value < 100)
            //{
            //    progressBar1.Value += 2;
            //}
            //else
            //{
            //    timer1.Stop();
            //    frmSplash FrmSplash = new frmSplash();
            //    FrmSplash.Hide();
            //    frmMainWindow FrmMainWindow = new frmMainWindow();
            //    FrmMainWindow.Show();
            //}
        }
    }
}


Comments

Popular posts from this blog

Turbo C++ tutorial

Turbo C++ Tutorial  Turbo C++ is a programming language was developed by Borland. C++ was a C++ compiler and integrated development environment and computer language originally from Borland. Most recently it was distributed by Embarcadero Technologies, which acquired all of Borland's compiler tools with the purchase of its CodeGear division in 2008. The original Turbo C++ product line was put on hold after 1994 and was revived in 2006 as an introductory-level IDE, essentially a stripped-down version of their flagship C++Builder. Turbo C++ 2006 was released on September 5, 2006 and was available in 'Explorer' and 'Professional' editions. The Explorer edition was free to download and distribute while the Professional edition was a commercial product. In October 2009 Embarcadero Technologies discontinued support of its 2006 C++ editions. As such, the Explorer edition is no longer available for download and the Professional edition is no longer available

Ganna Gyaras

Ganna Gyaras or called Dev uthavni Aikadashi.... It is also called Prabodhini  Aikadashi. It is belived that after killing the demon called Shankhasur The Great Lord Vishnu went for long sleep... which began after June month...... After diwali's 11th day the Ganna Gyaras is celebrated..... and all the auspicious tasks such as Weddings, New buyings etc. are done.  It is also called that... the end of Chaturmas.... Cool fact... Isn't it..?? Please make comments...... Thank you.

Fino Bank Asp.net C# Desktop Application

    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  FinoBank_Application {      public   partial   class   frmSplash  :  Form     {          public  frmSplash()         {             InitializeComponent();         }          private   void  frmSplash_Load( object  sender,  EventArgs  e)         {             timer1.Start();         }          private   void  timer1_Tick( object  sender,  EventArgs  e)         {             progressBar1.Minimum = 0;             progressBar1.Maximum = 100;             progressBar1.Value = progressBar1.Value + 1;              //this.progressBar1.Increment(1);              if  (progressBar1.Value <= 0)             {                 lblProgress.Text =  "Initializing components............... " ;             }              else   if  (progressBar1.Va