J
Jerry Bodoff
Hi,
With Peter's help I have been able to create a controls
collection. I still have 1 more problem that I cannot
seem to solve.
I create the Controls on the form without any problem and
all works well. I then tried to create the same controls
in a Frame. The controls do not display and I am not
sure why. The code I am using is:
For SeqNo = 1 to Ubound(CmdCaptions)
Set ctlCB = fraTest.Controls.Add _
("Forms.CommandButton.1","cmdButton" & SeqNo)
--- setting properties ---
--- setting next button location ---
--- adding to controls collection ---
Next SeqNo
Can anyone please tell me what I am doing wrong? I am
assuming that run-time controls can be added to a frame.
Any help would be greatly appreciated.
Jerry B.
With Peter's help I have been able to create a controls
collection. I still have 1 more problem that I cannot
seem to solve.
I create the Controls on the form without any problem and
all works well. I then tried to create the same controls
in a Frame. The controls do not display and I am not
sure why. The code I am using is:
For SeqNo = 1 to Ubound(CmdCaptions)
Set ctlCB = fraTest.Controls.Add _
("Forms.CommandButton.1","cmdButton" & SeqNo)
--- setting properties ---
--- setting next button location ---
--- adding to controls collection ---
Next SeqNo
Can anyone please tell me what I am doing wrong? I am
assuming that run-time controls can be added to a frame.
Any help would be greatly appreciated.
Jerry B.