G
Guest
When I add controls to a pocket PC form at design time, all the scaling works
fine.
I see in the initialize code the use of AutoScaleDeminsions and AutoScaleMode.
However, when I add a control (say a button) dynamically at run time and I
use the AutoScaleDeminsions and AutoScaleMode again for the parent form it
does not work and I get a badly scaled button.
I can however use button.Scale(x ) and get the control to scale.
What is the preferred method of scaling controls that are added at runtime?
Thx
fine.
I see in the initialize code the use of AutoScaleDeminsions and AutoScaleMode.
However, when I add a control (say a button) dynamically at run time and I
use the AutoScaleDeminsions and AutoScaleMode again for the parent form it
does not work and I get a badly scaled button.
I can however use button.Scale(x ) and get the control to scale.
What is the preferred method of scaling controls that are added at runtime?
Thx