• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

Display messed up on one computer

I have a visual basic program that when installed on one computer looks horrible.
Most of the frames, buttons, and elements are all in the wrong positions.
It looks like the original layout was distorted.

This only happens on one computer, it is running xp pro with service pack 2.
I have tried it on other computers with xp pro and service pack 2, and it looks fine.

What could be causing this?
1 Solution
Hi jackjohnson44,

Perhaps the computer with problems is using large fonts, that sometimes causes problems.

jackjohnson44Author Commented:
what I meant was how do I resolve this?

I tried it on a similar computer and there were no problems.
Is it a resolution issue? There is a good KB article here on creating resolution independent forms:

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

jackjohnson44Author Commented:
One thing that I forgot to mention, it that nothing is resizable.  It is a fixed size form.

Ryan ChongCommented:
>>Most of the frames, buttons, and elements are all in the wrong positions.
Perhaps you can describe to us when it's working fine, and when it's getting wrong? in what conditions.. ? Difference resolution, etc ?

If the form is Not resizable, and you when try allow all (most) resolution can view the form, you can try to make the form as small as possible (640 x 480), indeed, sometimes it's good to change your resolution on your development machine to the smaller scale resolution as possible (640 x 480), so that to ensure your clients can view the whole form in whatever resolution so.
jackjohnson44Author Commented:
the form is made for 640*480.  It is very small and centered in the middle of the screen.  The computer with the problem has a resolution of 1024*768.  Any other computer, with any resolution works fine.  There is plenty of room all around the form.  Nothing is getting squeezed, but the elements are not in the right places.  Every other program running on this computer seems to be working normally.

for instance if a button is supposed to be

top 90
left 100

it is looking more like
top 400
left 250

It does not appear that each messed up element has the same offset, and some elements are in the correct place.
Ryan ChongCommented:
Did you write any codes to set position of buttons ? Is it only 1 form got such problem or all forms got display problem under 1024 x 768 resolution ?

Btw, will it be possible if take a snapshot and show us here ?

jackjohnson44Author Commented:
all of the positions in question are set when I created the app in the parameters on the side.  Nothing in question is set at run time, or programmatically.  I will post some pics soon.
jackjohnson44Author Commented:
Here are a few pics to illustrate my point.

<a href="http://www.quadtech.com/captivate/screen1_good.gif">Screen 1 Good</a><BR>
<a href="http://www.quadtech.com/captivate/screen1_bad.gif">Screen 1 Bad</a><BR>
<a href="http://www.quadtech.com/captivate/screen2_good.gif">Screen 2 Good</a><BR>
<a href="http://www.quadtech.com/captivate/screen2_bad.gif">Screen 2 Bad</a><BR>
<a href="http://www.quadtech.com/captivate/screen3_good.gif">Screen 3 Good</a><BR>
<a href="http://www.quadtech.com/captivate/screen3_bad.gif">Screen 3 Bad</a><BR>
Ryan ChongCommented:
As reviewing the above, i suspect it's cause by the different Theme on different machines, that's possible that causing the above problem.

Can you make sure 2 machines Theme are the same? else i got no clue why they are different.. hmm..


Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now