vb,如何将一个变量定义控件类型
PrivateSubCommand1_Click()DimaAsCommanda.Left=50Command1=aEndSub哪里出错了???...
Private Sub Command1_Click()
Dim a As Command
a.Left = 50
Command1 = a
End Sub哪里出错了??? 展开
Dim a As Command
a.Left = 50
Command1 = a
End Sub哪里出错了??? 展开
2013-09-05
展开全部
只要Private Sub Command1_Click()
Dim a As CommandButton
Set a = Command1
a.Left = 50End Sub即可
Dim a As CommandButton
Set a = Command1
a.Left = 50End Sub即可
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-09-05
展开全部
as CommandButton
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询