private void CreateFields() { for (int i = 0; i < CurrentTable.GetCountName(); i++) { columns_field.Add(new TextBox()); } for (int i = 0; i < columns_field.Count; i++) { this.Controls.Add(this.columns_field[i]); } for (int i = 0; i < CurrentTable.GetCountName(); i++) { this.LabelTexte.Add(new Label()); this.Controls.Add(this.LabelTexte[i]); this.LabelTexte[i].Location = new System.Drawing.Point(this.x, this.y - 20); this.LabelTexte[i].Text = CurrentTable.GetColumnName(i); this.columns_field[i].Location = new System.Drawing.Point(this.x, this.y); this.columns_field[i].Name = this.CurrentTable.GetColumnName(i); this.columns_field[i].Size = new System.Drawing.Size(200, 20); this.columns_field[i].TabIndex = i; //this.x += 10; this.y += 50; } }