Hi All,
I am having an issue on when or when not to scale a control that is
dynamically added to a hosting User Control when executing on a device with
640x480 screen.
Here is what I got... In designer, if a developer defines a property, my
code will dynamically add a control to the main hosting control (everything
works great; even scaling). I think this works because the control was added
during the initialization process which the OS tells it to scale (at this
time its a part of the controls collection of the host).
Now, the problem is if the developer does not use designer, but uses the
LoadForm event to define the property, my control is dynamically added but
its not scaled correctly for the 640x480 device. I think this happens
because it was added after the hosting control's initialization.
Any ideas on how to handle this? I am using Visual Studio 2005 Framework
2.X and such.
Thanks in Advance!