Form resizing on different machines VB.NET 2003

G

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
 
G

gene kelley

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
 

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