1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| namespace WindowsApplication1
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "aaaaa") {if (textBox2.Text == "bbbbb")
{
this.Close();
Form1 s=new Form1();
s.Close();
Form3 d = new Form3();
d.Show();
}
else MessageBox.Show("erreur dans le mots de passe", "message d'erreur", MessageBoxButtons.OK);
}
else MessageBox.Show("erreur d'authentification", "message d'erreur", MessageBoxButtons.OK);
}
}
} |
Partager