>What I see with visible is, that visible could be toggled all day long. Since !enabled is deprecated on UI to mark stuff not available ..
>On some (crowded) forms I instantiate containers as I need them to sped up initial load of the form, and hide them later again.
>
>It would not make sense to resize again.
>
>All say, think about the way it would work on a form where nothing is added (iow on forms init, activate, whatever), and try to simulate as close as possible.
I get your point, but trapping the Visible assignment is just to fetch the values of the properties that may be scaled. It will be done only once, the first time the control is visible, just like the controls that were added at design time.
Anyway, this is the general idea, but I'm beginning to reckon it will be hard (= impossible) to do this without the application, as a whole, becoming DPI aware (and not just a part of it).
----------------------------------
António Tavares Lopes