Why does the form change the size at run time?

  • Thread starter Thread starter snow
  • Start date Start date
S

snow

Hi All,

I have a VB.Net Windows Application working with .NET 2005 on VISTA
computer. The size of the splash window changes to smaller size at run
time, but it doesn't has this problem on XP with the same program and
same development environment. What cause this problem?

Thanks for the help!
 
snow said:
Hi All,

I have a VB.Net Windows Application working with .NET 2005 on VISTA
computer. The size of the splash window changes to smaller size at run
time, but it doesn't has this problem on XP with the same program and
same development environment. What cause this problem?

Thanks for the help!

no dotNet here, but since nobody's jumped in.... That kinda sounds like
there are hard-coded size values somewhere that don't correctly allow for
the different border/titlebar dimensions. Are you setting the form's size at
runtime? Using the dotNet equivalent of ScaleWidth/ScaleHeight and not just
Width/Height?
 
snow said:
Hi All,

I have a VB.Net Windows Application working with .NET 2005 on VISTA
computer. The size of the splash window changes to smaller size at
run time, but it doesn't has this problem on XP with the same
program and same development environment. What cause this problem?

Thanks for the help!

Form's Autoscalemode property = Font, and "font size" (dpi) different on
Vista machine?


Armin
 
Back
Top