|
for i=1 to 3
commandname = "commandA" & f
Set newcommand = Controls.Add("VB.commandbutton", commandname)
Set newcommand.Container = newframe
newcommand.Move Frame0.Width / 3 * 2 - 1100, newoption.Top - 100, 1000, 330
newcommand.BackColor = &HE0E0E0
newcommand.Caption = "显示答案"
newcommand.Font = "黑体"
newcommand.Visible = True
next i
Private Sub Timer1_Timer()
if Controls(commandname)_click then '例如其中一个单击 ??为何单击却不无任何反应??
msgbox("成功",,)
endif
end sub |
|