S
Svein Engebretsen
I would like to add controls to a form at run-time. Is it possible?
Aprecciate any answers.
Svein Engebretsen
Oslo, Norway
Aprecciate any answers.
Svein Engebretsen
Oslo, Norway
-----Original Message-----
I have to argue that simple Yes, Geof. While it certainly
is possible to use Create<object> methods in a running
application, the methods are still design operations that
bring all their attendent issues into play. Massive bloat,
greatly increased oportunity for corruption and the
inability to use RunTime installations being the most
serious issues. The first two of those issues require
additional mechanisms (frequent Compacts, more rigorous
backup schemes, etc) in attempts to deal with the near
inevitable problems.
I **strongly** agree that the right way to do this kind of
thing is to precreate the needed controls and manipulate
their properties at run time.
--
Marsh
MVP [MS Access]
Geof said:Svein,
Yes it is. Try the CreateControl method. But, based on my
experience it is a lot of effort. If you create a control
you also have to create and assign VBA to it, if you want
to use VBA. I would rather create the controls and the
make them visible when needed.
Geof. it
possible?
.
-----Original Message-----
Sure thing that adding the event procedures is a serious
complication for the developer and it further enhances(?)
the chances for corruption as the compiler gets involved.
I really go for the up to X controls, as long as X is a
reasonably big number ;-)
--
Marsh
MVP [MS Access]
.Geof said:Good points I hadn't thought of. When I tried doing this I
gave up when I realized I had to add my own events.
Instead I let my users have up to X number of controls.
Geof. on
my Is
it