A graphical problem

M

Mike Chamberlain

Hello!

I'm using .NET 2.0, Windows Forms and VS2005 to develop a full-screen
touch-screen application. It all looks great on two different
development machines (both WinXP Pro, latest service packs), but when we
run it on the prototype machine (WinXP Pro, not genuine so missing some
of the latest service packs - don't worry we do have licenses and will
upgrade it at some point) it doesn't display as it should.

It's easier to see what's wrong if you look at a couple of screenshots:

Correct (both development machines):
http://www.unitedwholesale.com.au/tmp/screenshot_good.jpg

Wrong (prototype machine):
http://www.unitedwholesale.com.au/tmp/screenshot_bad.jpg

The elements are a mixture of PictureBoxes (containing PNGs) and Labels.
The size of the form is set to 1024 x 768 (matching the resolution of
the prototype machine). Its window state is set to normal. If I
maximized the form then it does fill the whole screen on the prototype
machine, but the positioning of the elements is still wrong.

For example, on the bad screenshot, you can see how the darker grey
overlaps the top banner (both are PNGs) and obscures some of the text
("add credit to your card here"). This is despite the fact that the
darker grey PictureBox's absolute location is set to (0, 145), which
should position it clear of the top banner, which has a height of 145
pixels.

The graphics card on the prototype machine is very basic and only
supports a max resolution of 1024x768, which is fine for what we need,
but makes me think this is the most likely culprit. Still, it seems
very strange, and I was wondering if any gurus could make any other
suggestions.

Cheers in advance for any help,

Mike
 
M

Mike Chamberlain

Mike said:
The graphics card on the prototype machine is very basic and only
supports a max resolution of 1024x768, which is fine for what we need,
but makes me think this is the most likely culprit. Still, it seems
very strange, and I was wondering if any gurus could make any other
suggestions.

I should add that the display adapter is listed as a VIA/SG3 UniChrome
IGP with driver version 6.14.10.133. This is the latest driver
available, although it is dated from 2004.

Mike
 
K

Kevin Spencer

I noticed that the physical dimensions of both images are 1024X768. However,
the second image shows parts of the desktop and task bar under the form. So,
as the image is 1024X768, the form itself can not be.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

The man who questions opinions is wise.
The man who quarrels with facts is a fool.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top