Draw Controls at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Are there any MS sample dbs where this is demonstrated. I would like to use
same form again and again, just redraw controls as required by a specific
report, etc.

The form is used as front - end filter...one report will have for example
date controls, while the other may have other controls such as text boxes or
combo boxes,
thanks in advance.

Marcel K.
 
Hi Marcel

The only way to do this at *runtime* (ie without switching the form to
design view) is to create all the controls you would ever need and make them
invisible. Then, you can make them visible, reposition them, resize them,
change the captions of attached labels, etc as required at runtime.
 
Excellent...Thanks for that input...I like to do things effeciently, hearing
it from MVP makes me confident I am doing something with good intention,

best regards,

Marcel.
Graham Mandeno said:
Hi Marcel

The only way to do this at *runtime* (ie without switching the form to
design view) is to create all the controls you would ever need and make them
invisible. Then, you can make them visible, reposition them, resize them,
change the captions of attached labels, etc as required at runtime.

--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

<YaDiYaDa> wrote in message news:%[email protected]...
Are there any MS sample dbs where this is demonstrated. I would like to use
same form again and again, just redraw controls as required by a specific
report, etc.

The form is used as front - end filter...one report will have for example
date controls, while the other may have other controls such as text
boxes
or
combo boxes,
thanks in advance.

Marcel K.
 
Back
Top