Forms layout wrong on laptop

  • Thread starter Thread starter Brian Smith
  • Start date Start date
B

Brian Smith

I have a winforms (1.1) program that I have tested on a large number of
screen resolutions with no problem. But on a client's laptop, there are
two significant issues:
1. all the textbox borders are missing the right-hand end - I put this
down to a video driver problem
2. on an inherited form, the control placement has gone awry, with
buttons overlaying grids etc. Mostly the problem seems to lie with
vertical positioning.
This form has some control positioning logic in the Form_Load event,
which works fine everywhere I've tested it (different resolutions and
aspects ratios), but not on the offending laptop, which has a widescreen
1680x1050 display.

What properties should I be checking and accounting for in my
positioning logic to cater for this screen?

brian smith
 
Brian Smith said:
I have a winforms (1.1) program that I have tested on a large number of
screen resolutions with no problem. But on a client's laptop, there are two
significant issues:
1. all the textbox borders are missing the right-hand end - I put this
down to a video driver problem
2. on an inherited form, the control placement has gone awry, with buttons
overlaying grids etc. Mostly the problem seems to lie with vertical
positioning.
This form has some control positioning logic in the Form_Load event, which
works fine everywhere I've tested it (different resolutions and aspects
ratios), but not on the offending laptop, which has a widescreen 1680x1050
display.

Maybe the laptop runs with large fonts instead of normal fonts. Check out
the form's 'AutoScale' property.
 
AutoScale is true - is that the right answer. I'll try playing with
large fonts, although they dodn't look large, but at such a high res,
who knows.

I assume AutoScale is desirable, but clearly does not work sufficiently
well. So if the problem does occur because of Large(r) Fonts how do I
resolve it? (or even detect it).

brian
 
Back
Top