Example #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (pbcarrega.Value < 100)
            {
                pbcarrega.Value = pbcarrega.Value + 5;
            }
            else
            {
                timer1.Enabled = false;
                this.Visible   = false;

                /*frm_principal principal = new frm_principal();
                 * principal.Show();*/
                frm_login login = new frm_login();
                login.ShowDialog();
            }
        }
Example #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (pbcarrega.Value < 100)
            {
                pbcarrega.Value = pbcarrega.Value + 5;
            }
            else
            {
                timer1.Enabled = false;
                this.Visible = false;
                /*frm_principal principal = new frm_principal();
                principal.Show();*/
                frm_login login = new frm_login();
                login.ShowDialog();

            }
        }