示例#1
0
        private void button4_Click(object sender, EventArgs e)
        {
            inicio gerar = new inicio();

            Hide();
            gerar.ShowDialog();
            Show();
        }
示例#2
0
        public Tela_Carregar()
        {
            InitializeComponent();



            Task.Factory.StartNew(() =>
            {
                // Espera 2 segundos para iniciar o sistema
                System.Threading.Thread.Sleep(4800);

                Invoke(new Action(() =>
                {
                    // Abre a tela Inicial
                    inicio frm = new inicio();
                    frm.Show();
                    Hide();
                }));
            });
        }