Connecting Tech Pros Worldwide Forums | Help | Site Map

Windows Mobile - UserControl view in VS Designer messed up after changing AutoScaleDi

Newbie
 
Join Date: Jan 2009
Posts: 2
#1: Jan 28 '09
Hi:

I am developing Windows Mobile 6 application using Visual Studio and c#. We started developing with AutoScaleDimensions (96F, 96F) and design-time defaults for device resolution 96x96 , now we changed it to (192F, 192F) for everything – UserControls, Forms and design-time defaults for device.

I am developing UserControl that using TextBox controls. Before we changed resolution setting it worked OK, but now my TextBoxes and UserControl are getting very big in the Visual Studio Designer - twice the size they should be, even if I am setting small Font size.

Does anyone have an idea what I am doing wrong? Is it related to TextBox internal implementation?

Help will be greatly appreciated,

Olga

markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#2: Jan 28 '09

re: Windows Mobile - UserControl view in VS Designer messed up after changing AutoScaleDi


I would check to make sure that you haven't set the texbox dock property to "fill" by accident. (Or if you are adding these at run time, you might want to explicitly set it to none)
Newbie
 
Join Date: Jan 2009
Posts: 2
#3: Jan 28 '09

re: Windows Mobile - UserControl view in VS Designer messed up after changing AutoScaleDi


Hi:

Thank you for a quick reply. Docking properties look OK. If my TextBoxes are part of UserConrol and exposed to VS Designer through TextBox array, if I change properties of one of them in the Designer Collection Editor - the others are getting twice bigger and their Font size is doubles as well. I am wondering if this is related to .Net TextBox control scaling mode and how I can prevent them from automatic scaling.

Olga
Reply