سلام، اینم کد. لطف کنید کمکم کنید:
Article++;
int i=Article;
#region label for article countor
Label newlbl=new Label();
newlbl.Name="lblArticle"+Article.ToString();
newlbl.AutoSize = true;
newlbl.Font = new System.Drawing.Font("Tahoma", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontSt yle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(178)));
newlbl.Top=10+(Article-1)*50;
newlbl.Left=608;
newlbl.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
newlbl.Size = new System.Drawing.Size(11, 17);
newlbl.Text = Article.ToString();
this.panel9.Controls.Add(newlbl);
#endregion
#region make textbox kol
txtKol[i]=new TextBox();
txtKol[i].MaxLength=frmMain.KolDigits+frmMain.MoeenDigits;
txtKol[i].Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(178)));
txtKol[i].Location = new System.Drawing.Point(496, 8+(Article-1)*50);
txtKol[i].RightToLeft = System.Windows.Forms.RightToLeft.Yes;
txtKol[i].Size = new System.Drawing.Size(96, 21);
txtKol[i].Text = "";
this.panel9.Controls.Add(txtKol[i]);
txtKol[i].TextAlign=System.Windows.Forms.HorizontalAlignmen t.Center;
this.txtKol[i].TextChanged += new System.EventHandler(this.txtKol_TextChanged);
#endregion