首页上一页 1 下一页尾页 5 条记录 1/1页
廖
发表在VB答疑区
2010-09-09
是否精华
是
否
版块置顶:
是
否
下面这个可以运行
Private Sub Form_Load()
Dim b As CommandButton
Dim a As CommandButton
Set a = Controls.Add("VB.CommandButton", "b") ' 在本例中该行中的b有什么用处?,按资料中述应该是添
'加的按纽名称,但不能操作呢?
a.Visible = True
a.Caption = "sdsd"
End Sub
但改去一个可选参数后就不行
Private Sub Form_Load()
Dim b As CommandButton
Dim a As CommandButton
Set a = Controls.Add("VB.CommandButton") '去掉了上列中b就不能运行
a.Visible = True
a.Caption = "sdsd"
End Sub
请指点
Private Sub Form_Load()
Dim b As CommandButton
Dim a As CommandButton
Set a = Controls.Add("VB.CommandButton", "b") ' 在本例中该行中的b有什么用处?,按资料中述应该是添
'加的按纽名称,但不能操作呢?
a.Visible = True
a.Caption = "sdsd"
End Sub
但改去一个可选参数后就不行
Private Sub Form_Load()
Dim b As CommandButton
Dim a As CommandButton
Set a = Controls.Add("VB.CommandButton") '去掉了上列中b就不能运行
a.Visible = True
a.Caption = "sdsd"
End Sub
请指点