private void bcon_Click(object sender, EventArgs e) { compte a = reche(); if (a != null && tmdp.Text == a.mdps) { m = temail.Text; // MessageBox.Show("Bienvenue"); temail.Clear(); tmdp.Clear(); Accueil at = new Accueil(m); at.ShowDialog(); } else if (a != null && a.mdps != tmdp.Text) { MessageBox.Show("mot de pass incorrect"); } else { MessageBox.Show("Ce compte n'existe pas"); } }