Re: why does build resize form controls?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: saurabh (saurabh_at_nagpurcity.net)
Date: 12/13/04


Date: Mon, 13 Dec 2004 13:45:14 -0000

I would say, its to do with autoscaling. The Winforms autoscale depending on
the fact that the font size in design mode is different to the one when its
running. When the AutoScale property is set to true, the framework checks
for the AutoScaleBaseSize and then scales the controls accordingly.

Are you using 120 DPI whereas the base one was designed at 96 DPI or other
way round

--Saurabh

"shamus" <shamus@discussions.microsoft.com> wrote in message
news:8503BB2E-2D0F-41F2-BEDA-BA9B180CA404@microsoft.com...
> I'd posted months without having a grasp of what the problem really is.
> The
> issue is with an Infragistics UltraWinListBar control. It's on a base
> form,
> many forms inherit from the base form. The UltraWinListBar controls on the
> inherited forms seem to want to use their own size information instead of
> the
> inherited size values. I hit reset in properties, and the control returns
> to
> the inherited size (75,568). But, then I build (or rebuild) and the
> control
> returns to 75,547. It's bizarre and frustraing. Locking the control does
> no
> good. Is something stuck in a cache somewhere? I just don't get it. If
> anyone
> knows of this issue, I'd appreciate a response.
> Thanks,
> Shamus



Relevant Pages

  • Re: why does build resize form controls?
    ... I suspect that the size is different for base form and derived form. ... When the AutoScale property is set to true, ... >> issue is with an Infragistics UltraWinListBar control. ... >> many forms inherit from the base form. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • resize/rescale user control
    ... I have a user control, which I use in COM application. ... etc. So does the box Outlook opens when you select ... How to get the parent size, so I can manually rescale and reposition my ... Or, better, is there some automatic feature, like AutoScale in winforms? ...
    (microsoft.public.dotnet.framework.windowsforms)