Results 1 to 3 of 3

Thread: [2008] Labels displaying incorrectly on other machines

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2009
    Posts
    18

    [2008] Labels displaying incorrectly on other machines

    Hello All,

    I've nearly finished my latest project (VB 2008 Express Edition)
    I built the project and ran the .exe from \bin\Release\ and it appears and works exactly as it did in Visual Basic

    When I carry this .exe to any other computer, it displays differently. The biggest difference is the font size in labels (grows on other machines) and the size of the tabcontrol is a bit larger on other machines.
    Please see the links below for comparison (coding machine vs other machine)
    http://www.personal.psu.edu/bmg180/b...xe_correct.JPG
    http://www.personal.psu.edu/bmg180/b..._incorrect.JPG

    Please note that both machines were set at the same screen resolution, both were using the default Windows XP "Theme" and display fonts appear to be set the same on both machines. I've tried this on about 3 other XP machines with the same result (only looks correct on the machine I coded on)

    I've specifically used Microsoft Sans Serif font, size 8 (VB seems to display this as 8.25pt in the properties window)
    I have also tried making all labels "UseCompatibleTextRendering" both true and false with the same result.
    Any thoughts? Perhaps something on the original (programming) machine is different that is throwing this off? Am I missing a step when building this project?
    If other encounter this problem often, what steps do you take (when programming) to avoid this and allow the form(s) to display correct regardless of the user's settings?

    Thank you

    Edit: One difference can be found in (Right Click on Desktop -> Properties -> Settings Tab -> Advanced Button) the DPI Setting on the coding machine is Normal Size (96 DPI)
    The DPI on the other computers is Large Size (120 DPI)

    The application will be used by roughly 100 folks on various systems (some Windows ME, most XP). How can I prevent things from going crazy with different user settings?
    Last edited by orspa_program; Feb 25th, 2009 at 04:00 PM.

  2. #2
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,950

    Re: [2008] Labels displaying incorrectly on other machines

    Im going to make a really irritating comment here... I had that problem too a long time ago, but I cant remember how I fixed it.

    From memory I think it was setting forms AutoScaleMode property to "Font" which fixed it.

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: [2008] Labels displaying incorrectly on other machines

    Have you tried setting the AutoScaleMode to None?

    If that does work, you will probably have users that will complain that the fonts are too small, if they are used to the bigger fonts of 120 DPI.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width