Bonjour les amis j'ai un problème d'affichage dans un textbox apartir d'une requête SQL
voici mon code :
cn.Open();
SQLiteCommand cmd = new SQLiteCommand();
cmd.Connection = cn;
cmd.CommandText = " select conge.nombre_jour from contient,conge,ferier where contient.id_jours=ferier.id_jours and contient.id_conge=conge.id_conge and ferier.datejours not between conge.date_debut and conge.date_fin order by conge.id_conge desc limit 1 ";
SQLiteDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
textBox3.Text += string.Format("{0}\t\t{1}", dr.GetString(0)) + Environment.NewLine;
}
dr.Close();
cn.Close();
EDIT : Ajout des balises de code (la coloration syntaxique). Explications disponibles ici : ICI