add textbox control dynamically at runtime?

  • Thread starter Thread starter Matt Landis
  • Start date Start date
M

Matt Landis

Hello,

Is it possible to add textbox and/or other controls dynamically at runtime?

We are dynamically generating form at runtime based on contents in a table.
We currently just add the fields hidden and turn visible on if we want to
use them but we thot adding dynamically would be more elegant.

Any thots?

Thanks,
Matt
 
You can CreateControl only if you open the form in design view.

Since most serious applications end up as an MDE where design view is not
possible, what you are doing with hidden controls is probably the better
approach.
 
Thanks Allen, for the 2nd opinion.

Matt

Allen Browne said:
You can CreateControl only if you open the form in design view.

Since most serious applications end up as an MDE where design view is not
possible, what you are doing with hidden controls is probably the better
approach.
 
Back
Top