3
Answers

My splashscreen's form doesnt obey... What wrong?

Israel

Israel

10y
595
1
Hi!
 
There is a little problem that I didnt understand why its happen.
I have two form: SplashScreen.cs and senha_entrada
 
When I run my program the splashscreen form appear then it's stop on himself. Mean that its doesnt jump to the segond form "senha_entrada". Its comeback only on the same form "splashscreen".
 
Please have a look on my code:
 
//This is form Splashscree's form
 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ElSoft_FactuStocks
{
public partial class SplashScreen : Form
{
public SplashScreen()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
this.Close();
}
}
}
}
------------------------------
 
//the senha_entrada's form 
 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ElSoft_FactuStocks
{
public partial class Senha_entrada : Form
{
public Senha_entrada()
{
InitializeComponent();
}
private void Senha_entrada_Load(object sender, EventArgs e)
{
Senha_entrada Splash = new Senha_entrada();
Splash.Show();
}
}
}
 
 

Answers (3)