7,765
社区成员
发帖
与我相关
我的任务
分享
Private Sub Form_Load()
Dim a As Label
Set a = Form1.Controls("label6")
End Sub
Private Sub Form_Load()
Controls.Add "VB.Label", "Label6"
Me("Label6").BackColor = vbGreen
Me("Label6").Caption = 555
Me("Label6").Move 1000, 1000
Me("Label6").Visible = True
End Sub
Private Sub Command1_Click()
Call sub_tt("label1", "ok")
End Sub
Private Sub sub_tt(ByVal strLabelName As String, ByVal strCaption As String)
Me.Controls(strLabelName).Caption = strCaption
End Sub