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();
}
}
}
Ranjit PowarPosted Apr 25, 2014, 6:21 AM
namespace splashDemo1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Stop();
this.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Start();
}
}
}
namespace splashDemo1
{
static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Application.Run(new Form2());
}
}
}
Ranjit PowarPosted Apr 25, 2014, 7:42 AM
IsraelPosted Apr 25, 2014, 7:21 AM