private void button4_Click(object sender, EventArgs e) { inicio gerar = new inicio(); Hide(); gerar.ShowDialog(); Show(); }
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(); })); }); }