1         private void FormLugOther_Load(object sender, EventArgs e)
 2         {
 3             foreach (string str in FormLug.FieldListLug1)
 4             {
 5                 try
 6                 {
 7                     Label label = new Label();
 8                     label.Text = str;
 9                     this.tableLayoutPanel1.Controls.Add(label);
10                     TextBox textbox = new TextBox();
11                     textbox.Name = "tb" + str;
12                     textbox.Text = FormLug.tbValue.Rows[0][str].ToString();
13                     this.tableLayoutPanel1.Controls.Add(textbox);
14                 }
15                 catch
16                 {
17                     return;
18                 }
19             }
20         }
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
猜你喜欢
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-06-08
  • 2021-12-22
  • 2022-12-23
相关资源
相似解决方案