Runtime control manipulation

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

Guest

I have a form with a very large number of controls. I place and size these
via code at runtime. Not only does this enable more precise placement but it
lets me keep the mass of controls physically organized as small objects on
the screen at design time. Here's the problem:

Every once in a while when I put the form back into design mode after
running it, I find all the controls placed on the form as they were placed at
runtime through code. This is very frustating since the runtime layout of
the controls has them placed in ways that are not at all friendly to finding
one's way around the screen at design time and I have to spend a large amount
of time puting them back the way they were.

Any suggestions?
 
When you close that form, use this format for doing it:

DoCmd.Close acForm, "FormName", acSaveNo
 
Back
Top