D
davebythesea
Hi folks,
I'm building an app for PPC 2003 using Compact Framework v2.0.
In this app I have a form in which I dynamically create and add custom user
controls. These controls by and large inherit from from things like TextBox,
RadioButton, ComboBox.
Anyway, up till now I've tested my app on a PPC 2003 device (HP iPAQ h6315),
Windows Mobile 6 Pro (HTC Touch, HTC P3300, HP iPAQ 614c) and all has been
fine. They have a screen resolution of 240x320.
However, I installed the app on a HP iPAQ 214 (Windows Mobile 6 Classic)
screen resolution 480x640, and when I open the form with the dynamically
created controls they are all very small in size. Using this device, contorls
which have been added in the designer are fine and adjust correctly to the
new screen resolution. However, dynamically created and added controls in
which i specify the Top,Left,Width, Height etc.. appear reduced by 1/2 size.
If I look at a control on the form placed by the designer it might have a
Left position of say 3. When I run the app and look at this control in
runtime, the control is automatically given a Left position of 6. I would
like to somehow, if possible, make my custom user controls also automatically
adjust based on screen resolution? Is there a property which i can set to do
this? I tried overriding Dock and Anchor and resetting these but it made no
difference :-[ any ideas?
Thanks again,
Dav
I'm building an app for PPC 2003 using Compact Framework v2.0.
In this app I have a form in which I dynamically create and add custom user
controls. These controls by and large inherit from from things like TextBox,
RadioButton, ComboBox.
Anyway, up till now I've tested my app on a PPC 2003 device (HP iPAQ h6315),
Windows Mobile 6 Pro (HTC Touch, HTC P3300, HP iPAQ 614c) and all has been
fine. They have a screen resolution of 240x320.
However, I installed the app on a HP iPAQ 214 (Windows Mobile 6 Classic)
screen resolution 480x640, and when I open the form with the dynamically
created controls they are all very small in size. Using this device, contorls
which have been added in the designer are fine and adjust correctly to the
new screen resolution. However, dynamically created and added controls in
which i specify the Top,Left,Width, Height etc.. appear reduced by 1/2 size.
If I look at a control on the form placed by the designer it might have a
Left position of say 3. When I run the app and look at this control in
runtime, the control is automatically given a Left position of 6. I would
like to somehow, if possible, make my custom user controls also automatically
adjust based on screen resolution? Is there a property which i can set to do
this? I tried overriding Dock and Anchor and resetting these but it made no
difference :-[ any ideas?
Thanks again,
Dav