Home All Groups Group Topic Archive Search About

Form resizing on different machines VB.NET 2003

Author
4 Mar 2006 4:46 PM
Gary Nappi
I wrote an application (568x392 sizable to 690x500) with four group
boxes, that contain one each image (120x120), a text
box, and a button. It was developed on a laptop @ 1024x768 and the form
sizes correctly at all screen resolutions.

On my main machine running 1024x768 things are VERY different.

The images that had 6 pixels clearance on either side of the group box,
are 1/3 smaller and are shifted to the LEFT in the group
box, the graphic on the top of the form has shifted way left (all images
and controls are locked) and the form no longer holds all
of the images. it's too small

What am I missing to make this application size itself correctly?

TIA for anyone who can shed light on this,

Oh VB.NET 2003 FW 1.1 with the service pack.

        Regards,

           Gary

Author
5 Mar 2006 3:47 AM
gene kelley
On Sat, 04 Mar 2006 16:46:32 GMT, Gary Nappi <gna***@earthlink.net>
wrote:

Show quoteHide quote
>
>I wrote an application (568x392 sizable to 690x500) with four group
>boxes, that contain one each image (120x120), a text
>box, and a button. It was developed on a laptop @ 1024x768 and the form
>sizes correctly at all screen resolutions.
>
>On my main machine running 1024x768 things are VERY different.
>
>The images that had 6 pixels clearance on either side of the group box,
>are 1/3 smaller and are shifted to the LEFT in the group
>box, the graphic on the top of the form has shifted way left (all images
>and controls are locked) and the form no longer holds all
>of the images. it's too small
>
>What am I missing to make this application size itself correctly?
>
>TIA for anyone who can shed light on this,
>
>Oh VB.NET 2003 FW 1.1 with the service pack.
>
>        Regards,
>
>           Gary

If this were VB6, I would say that you were describing the classic
Large Font(120 DPI)/Normal Font (96 DPI) setting dilema which was
particularly troubling if using the old Twips ScaleMode.  In other
words, the laptop appears to be using a large font setting and the
main pc, normal fonts. I don't know about VB2003, but in VB2005 there
is a form property, AutoScaleMode which when set to DPI, seems to take
care of that problem.

Gene