示例#1
0
        private void button_cancelar_Click(object sender, EventArgs e)
        {
            DialogResult res = MessageBox.Show("Deseja mesmo cancelar?", "Midas - Controle Financeiro", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (res.Equals(DialogResult.Yes))
            {
                Form_login frm = new Form_login();
                frm.Show();
                this.Hide();
            }
            else
            {
            }
        }
示例#2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (progressBar1.Value != 10)
     {
         progressBar1.Value++;
     }
     else
     {
         timer1.Stop();
         Form_login frm = new Form_login();
         frm.Show();
         this.Hide();
     }
 }