N
N4709L
We are having a problem with the size of forms when we develop our VB.NET
application on developer stations which use Normal Size (96 DPI) fonts and
the application is subsequently run on user stations that are configured to
use Large Size (120 DPI) fonts.
What happens is the form itself is too small to display all of the controls
that are on the form. One must resize the form to view all of the controls!
We would have thought that if the form layout looks correct on the
developer's station using Normal Size fonts and is built and deployed, it
would not matter what font size setting is used on the User's station.
These forms have a MaximumSize and a MinimumSize specified. For example, a
typical form might have the following property settings:
MaximumSize 1024,400
MinimumSize 344,400
Size 480,400
This particular form may be resized in width only. The MinimumSize.Height
and MaximumSize.Height matches Me.Height and on the developer's workstation,
the height of the form is just right! We do not want the user to be able to
change the height of the form. There's no need to!
When run on a User's station where Large Fonts are used, not all of the
form's controls may be seen. In this case, because the form cannot be
resized in Height, the user can never get to the OK button at the bottom of
the form! If we let MaximumSize.Height be larger at design time, the form
can be resized and the Large Fonts user can resize the form to get to the OK
button. But this isn't nice, because it should not be necessary to resize
the form, and because the form can easily be resized so that it looks "bad".
What's going on here and why does the form appear on the screen at a
different size when the Font Size changes? None of the other controls are
painted incorrectly. Only the form (border) itself is incorrectly sized.
Thanks!
application on developer stations which use Normal Size (96 DPI) fonts and
the application is subsequently run on user stations that are configured to
use Large Size (120 DPI) fonts.
What happens is the form itself is too small to display all of the controls
that are on the form. One must resize the form to view all of the controls!
We would have thought that if the form layout looks correct on the
developer's station using Normal Size fonts and is built and deployed, it
would not matter what font size setting is used on the User's station.
These forms have a MaximumSize and a MinimumSize specified. For example, a
typical form might have the following property settings:
MaximumSize 1024,400
MinimumSize 344,400
Size 480,400
This particular form may be resized in width only. The MinimumSize.Height
and MaximumSize.Height matches Me.Height and on the developer's workstation,
the height of the form is just right! We do not want the user to be able to
change the height of the form. There's no need to!
When run on a User's station where Large Fonts are used, not all of the
form's controls may be seen. In this case, because the form cannot be
resized in Height, the user can never get to the OK button at the bottom of
the form! If we let MaximumSize.Height be larger at design time, the form
can be resized and the Large Fonts user can resize the form to get to the OK
button. But this isn't nice, because it should not be necessary to resize
the form, and because the form can easily be resized so that it looks "bad".
What's going on here and why does the form appear on the screen at a
different size when the Font Size changes? None of the other controls are
painted incorrectly. Only the form (border) itself is incorrectly sized.
Thanks!