Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On install my application's layout is incorrect

Status
Not open for further replies.

nells1

Programmer
Mar 17, 2003
28
CA
Hi All

First time VB.NET developer here - and it shows <blush>

I've taken a lot of care to set my anchor and dock properties so that the controls on my forms are Centered and Sized correctly.

My Login form fits 800X600 and any resolution after that. It is just a box with the username and password text box controls and two buttons inside. The box's Anchor property is set to 'None' so that it centers itself on any screen, or so I thought.

It does center itself correctly on my development machine on any resolution I've tried. However I installed my application for the first time today on the Client's test machine. It has a resolution of 1024x768 - which is the same resolution I use on the development machine. But what a shock I got, everything looks very different.

The login form looks like it is centered correctly for 1024x768 but appears to be zoomed into 800x600, resulting in the box with my username and password textboxes sitting at the bottom right of the screen.

The controls are out of proportion as well.. the buttons appear bigger while the font appears close to the original size.

To further confuse me... When I pass the login form and Open the Main form.. the buttons appear slightly smaller and the font slightly bigger... this means the text is cropped as it no longer fits in the buttons.

Obviously I'm having problems with the settings on this machine and I was foolish to think that the resolution alone would decide how my application was laid out. Any suggestions on where else to look would be greatly appreciated.

Many thanks
Nells

 
Problem solved!!

The size changes were the result of the AutoScaleBaseSize setting and the fact that my test machine had a setting of 120dpi and my development machine was set at 96dpi..

You learn something new every day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top