honag luc

honag luc

  • NA
  • 123
  • 8.9k

Not insert value to dynamic textbox

Dec 30 2022 11:25 AM

Please guide insert or update data on create dynamic textbox, example 

prive void getControl() { TextBox txtName = new TextBox(); txtName.Location=new Point(20,40); txtName.Size = new Size(600, 25); txtName.Validating +=new CancelEventHandler (txtName_Validating); Controls.Add(txtName); ButtonForms btnSave = new ButtonForms(); btnSave.Location = new Point(200, 8); btnSave.Text = "Submit"; btnSave.Click += new System. EventHandler(this.btnSave_Click); Controls.Add(btnSave); }


Answers (1)