Pocket PC Devlopment - Scaling controls at runtime

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

FredC said:
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


You better post this question in the CF group
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top