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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top