Link to home
Start Free TrialLog in
Avatar of thinkscript
thinkscript

asked on

Why does everything look screwed up on my Windows Forms app?

I am troubleshooting a display problem for a VB.NET Windows application.  It was developed using VS 2003.  It is installed and working beautifully on 5 Windows 2000 pro machines.  It is installed and displaying incorrectly on a 6th Windows 2000 pro machine.  All 6 have .NET framework 1.1.4322 installed, and are up to date on windows updates.

I have posted striking screenshots that display the problem at:
http://thinkscript.net/screenshots.aspx 

The application is Windows Forms, and uses a MDI parent and child forms.  The application seemed to be working fine until one user called me and sent a screenshot showing the application screens completely ajar.  Everything is not lining up at all, and I would love it if anyone had some insight to this problem.  All comments appreciated.  Please take a look at the screenshot and let me know if you have any ideas.  Thanks!

michael@thinkscript.net

ASKER CERTIFIED SOLUTION
Avatar of Amro Osama
Amro Osama
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think i'm right after examining the Pics ,,
Look can you post a Part of the code that Installs the objects to their locations ?
and if you can try to past some numeric values of the two systems ,,

OHDev2004
Avatar of thinkscript
thinkscript

ASKER

Thank you for the suggestions.  I will strategize and think of a way to try this out tomorrow...it will be tough as the problem environment is far off site, and I really only have an inexperienced and frustrated user to try it out.  I will take a hard look at how these controls are positioned, and see if there is a way to be explicit about what measure is used in the values.

My assumption was that the measurements would all be on pixels, but obviously that may not be the case.  I am just perplexed as to under what conditions would the measurements shift...when it seems that many thinks about the enviroments are similar (operating system, screen resolution, manufacturer make and model).

I tried to base this project on an 800 x 600 framework with everything being positioned from the upper left corner...but maybe something is getting screwed up there.  It's bewildering to me though that parts of the top of the screen end up redrawn in three different locations...when that is coming from one picturebox control.  Also on the far right of the messed up screen the top banner is repeatedly drawn in little slivers...so weird.  There is a MDI form here with picture controls at the top and the bottom...the child forms are supposed to be manually positioned in the middle.   It's got to be something wrong there so I'll see if I can narrow it down on your suggestion.   Thanks...
Wild Thoughts...
Check for any Windows Setting set to a odd value...
Control Panel -> Display

Also check for the dispay resolution settings to be matching with the other computers.

Good Luck.
At first I thought it was going to be some kind of display resolution problem, or some kind of bug resulting from using Windows Themes...but I checked the two environments and they are matching in display settings :(  I'm going to investigate the possibility of a measurement conversion problem today...
It turns out that this seems to have been a combination of the Forms' .AutoScale property being set to true, and my selection of Microsoft's default font Microsoft Sans Serif set at a low number.  The application looks great on every computer except for one...and on the one it evidently bumps the font up automatically.

Weird.