Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Home_Dashboard obj = new Home_Dashboard();

            obj.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void timer2_Tick(object sender, EventArgs e)
        {
            initialPercentage += loadingSpeed;
            float percentage = initialPercentage / pictureBox2.Height * 100;

            label1.Text = (int)percentage + " %";

            panel2.Location = new Point(panel2.Location.X, panel2.Location.Y + loadingSpeed);
            if (panel2.Location.Y > pictureBox2.Location.Y + pictureBox2.Height)
            {
                label1.Text = "100 %";
                this.timer2.Stop();
                Hide();
                Home_Dashboard win = new Home_Dashboard();
                win.ShowDialog();
                Close();
            }
        }