Example #1
0
        private void button2_Click(object sender, EventArgs e) //portfolio
        {
            // start the waiting animation
            progressBar1.Visible = true;
            progressBar1.Style   = ProgressBarStyle.Marquee;
            // simply start and await the loading task
            button2.Enabled = false;
            FPortfolio f1 = new FPortfolio();

            f1.Show();

            // re-enable things
            button1.Enabled      = true;
            progressBar1.Visible = false;
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            FPortfolio f1 = new FPortfolio();

            f1.Show();
        }