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
Ignacio Machin ( .NET/ C# MVP ) - 06 Sep 2007 21:28 GMT
Hi,
> When I add controls to a pocket PC form at design time, all the scaling
> works
[quoted text clipped - 11 lines]
> runtime?
> Thx
You better post this question in the CF group