For j As Integer = 1 To 7
For i As Integer = 1 To 7
' Dim dr As String = e.Form.Controls("Ts_" & i & "_" & j).text
' Dim dr2 As String = e.Form.Controls("Tg_" & j).text
' Dim dr3 As String = e.Form.Controls("Tsy_" & i).text
' If dr <> "" And dr2 <> "" And dr3 <> "" Then
Dim lbl As WinForm.Label
lbl = Forms("数量选择").CreateControl("Label" & i & "_" & j, ControlTypeEnum.Label)
lbl.Height = 25
lbl.Width = 58
lbl.Left = 88 + 58 * (i - 1) - (i - 1)
lbl.Top = 96 + 25 * (j - 1) - (j - 1)
lbl.AutoSize = False
lbl.BorderColor = Color.Black
lbl.BackColor = Color.White
lbl.Font = New Font("Arial Narrow", 9)
lbl.BorderStyle = BorderStyle.FixedSingle
lbl.TextAlign = ContentAlignment.MiddleCenter
Forms("数量选择").AddControl(lbl)
' lbl.Text = i & "_" & j
' lbl.Text = e.Form.Controls("Tsy_" & i).Value
' lbl.Text = e.Form.Controls("Tg_" & j).Value
' lbl.Text = e.Form.Controls("Ts_" & i & "_" & j).Value
' End If
Next
Next