请给我修改下面的程序,我要实现点击一次按钮就产生一个按钮,谢谢。
DimIAsIntegerPrivateSubCommand1_Click(IndexAsInteger)I=I+1LoadCommand1(I)Command1(I)....
Dim I As Integer
Private Sub Command1_Click(Index As Integer)
I = I + 1
Load Command1(I)
Command1(I).Visible = True
Command1(I).Left = 200
Command1(I).Top = I * 500
Command1(I).Width = 1500
Command1(I).Caption = "新增按钮" & I
End Sub 展开
Private Sub Command1_Click(Index As Integer)
I = I + 1
Load Command1(I)
Command1(I).Visible = True
Command1(I).Left = 200
Command1(I).Top = I * 500
Command1(I).Width = 1500
Command1(I).Caption = "新增按钮" & I
End Sub 展开
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
展开全部
Dim I As Integer
Private Sub Command1_Click(Index As Integer)
I = I + 1
Load Command1(I)
Command1(I).Visible = True
Command1(I).Left = 200
Command1(I).Top = I * 500
Command1(I).Width = 1500
Command1(I).Caption = "新增按钮" & I
Me.Controls.Add("VB.CommandButton", "NewButton" & i)
End Sub
Private Sub Command1_Click(Index As Integer)
I = I + 1
Load Command1(I)
Command1(I).Visible = True
Command1(I).Left = 200
Command1(I).Top = I * 500
Command1(I).Width = 1500
Command1(I).Caption = "新增按钮" & I
Me.Controls.Add("VB.CommandButton", "NewButton" & i)
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询