cs_fayrous
Messages postés48Date d'inscriptionlundi 23 février 2009StatutMembreDernière intervention30 avril 2009
-
6 avril 2009 à 23:19
titeoe
Messages postés433Date d'inscriptionsamedi 26 avril 2003StatutMembreDernière intervention 4 décembre 2009
-
7 avril 2009 à 09:36
Salut;
dans mon forme j'ai un bouton qui permet de créer un label et un richbox.
if (indice <25)
{
this._currentHeight += 40;
this._currentHeig += 40;
RichTextBox tx = new RichTextBox();
tx.Size = new System.Drawing.Size(599, 34);
tx.Location = new Point(100, this._currentHeight);
tx.Name = tab[indice];
rich[indice] = tx;
Label l = new Label();
l.Size = new System.Drawing.Size(40, 40);
l.Location = new Point(30, this._currentHeig);
l.Name = tab[indice];
l.Text = tab[indice];
label[i] = l;
button1.Click += new EventHandler(tx_GotFocus);
panel2.Controls.Add(l);
panel2.Controls.Add(tx);
indice++;
}
je souhaite d'enrregister le text du richbox dans ma base.
j'ai crée un tableau richBox[] rich=new richBox[25];
pour récupèrer dans la base je fait:
com.Parameters.Add("@desrep", OleDbType.Char).Value = rich[0].Text;
com.Parameters.Add("@desrep", OleDbType.Char).Value = rich[1].Text;
com.Parameters.Add("@desrep", OleDbType.Char).Value = rich[3].Text;
.
.
.
MAIS aucun texte n'est enregistré dans la base .
S.V.P pouvez vous m'aider pour résoudre ce cette erreur.