با سلام
باvs2008پروژه ای نوشته ام که وقتی فرم ها رو به صورت پنجره های مجزا باز می کنمmasktextboxها درست کار می کنند اما وقتی فرم تو یه فرم دیگه باز می شه مشکل دارند و کار نمی کنند.
لطفا راهنمایی کنید چی کار کنم؟
کد نمایش فرم ها
public void showForm(Form frm)
{
frm.TopLevel = false;
this.panel2.Controls.Add(frm);
frm.Dock = DockStyle.Right;
frm.Show();
frm.BringToFront();
}
کد پروپرتی های mask
this.MTxtNatiunalCode.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.customerBindingSource, "national_code", true));
this.MTxtNatiunalCode.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
this.MTxtNatiunalCode.Location = new System.Drawing.Point(25, 152);
this.MTxtNatiunalCode.Mask = "0000000000";
this.MTxtNatiunalCode.Name = "MTxtNatiunalCode";
this.MTxtNatiunalCode.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.MTxtNatiunalCode.Size = new System.Drawing.Size(122, 22);
this.MTxtNatiunalCode.TabIndex = 1;s