Some labels cut off at 2/3 height on some computers

Hi there,

We're developing a windows app.  Amongst other things, we're displaying two labels on a form.  Another dev created these, and set the height of the labels to 13px.  The forms display fine on his computer, but on my laptop only the top two thirds of the text is shown, and the bottom third is invisible.  When I set the label height to 19px, I can see the entire label.

My question is why would this be different on his computer and mine   It's very frustrating.

My laptop is also reasonably new (Acer Ferrari 4005 if it makes any difference) and I have experience this problem in another couple of apps I use, that work fine on my desktop computer.

Is it a problem with my laptop   If so, what settings do I need to change


Cheers!

Tim.




Answer this question

Some labels cut off at 2/3 height on some computers

  • rodrb

    Are you using a non-standard font

  • Ignez

    Hi there,

    I've just discovered the cause.  I have a hi-res screen, and by default it was set to 120 dpi.  I changed this to the "normal" 96 dpi and it resolved the issue.

    Thanks for asking,

    Tim.

  • mrtn

    Tim,

    If you are using auto scaling of forms (Form.AutoScale .NET 1.0/1.1 and Form.AutoScaleMode .NET 2.0) and the Label.AutoSize is set to true then the size of your form and controls should be resized correctly.

    You need to be careful restricting your application to only normal dpi's as most new notebooks have a default of 120 dpi.



  • Some labels cut off at 2/3 height on some computers