试试
Dim tx01 As WinForm.labeltx01 = e.Form.CreateControl("label", ControlTypeEnum.label)tx01.text = "收单"
tx01.Left = 20tx01.Top = 3tx01.autosize = Truee.Form.Controls("panel7").AddControl(tx01)tx01.ForeColor = Color.blacktx01.BackColor = Color.blue