Пример #1
0
        private void btn_sair_Click(object sender, EventArgs e)
        {
            loginpage begin = new loginpage();

            this.Visible = false;
            begin.ShowDialog();
        }
Пример #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (pgb_1.Value < 100)
            {
                pgb_1.Value += 2;

                lbl_progressbar.Text = pgb_1.Value.ToString() + "%";
            }
            else
            {
                tmr_form1.Enabled = false;
                this.Visible      = false;
                loginpage begin = new loginpage();
                begin.ShowDialog();
            }
        }