Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Windows Form Resizing !
 

Windows Form Resizing !

I've recently switched from my desktop towidescreen laptop and some of the windows forms in my project are misbehaving.

I've been trying to eliminate the problem, and the following is the outcome:

* All Forms opened in Designer and saved on my laptop (resolution: 1680 * 1050, widescreen), these are the forms affected by not resizing appropriately on lower resolution computers

* If i go back to a machine, which has 1280 * 1024 resolution and save these forms through designer then the forms resize appropriately

* if I lower my resolution on the laptop to (1280 * 1024) and save the form through designer, it wouldn't resize appropriately

* Somehow, it doesn't like the widescreen.

Is there some VS2005 option to switch off adapting to the machine when saving the windows forms designers????

Andy.NET2005  Wednesday, May 31, 2006 12:01 AM

The most common cause of form sizing problems when switching resolutions or aspect ratios is due to the form's AutoScaleMode property being changed to something other than Font.

Have you changed the AutoScaleMode property of the form's in question? If so, what have you changed it to, or what is it set to currently?

Peter Ritchie  Thursday, June 01, 2006 5:13 PM

Autoscale Property is set to Font and nope I've haven't altered it !

The problem seems to be the difference in development machines resolution that somehow makes the form designer adapt wierdly.

The same project loaded on old development desktop 1280 * 1024, forms designer changed and saved ..... works

where as on the laptop 1680 * 1050 doesn't !therefore any new forms i create don't resize properly neither do existing forms altered on the laptop, but those that haven't been altered on the laptop still work fine !

Andy.NET2005  Friday, June 02, 2006 6:25 AM
Hmm, what font do you have set in the form?
Peter Ritchie  Friday, June 02, 2006 1:26 PM

its Tahoma, 8.25pt

Andy.NET2005  Sunday, June 04, 2006 11:18 PM
I am new to application development and seem to be having the same issue.

My development environment:

OS: Window XP
IDE: VS 2005
Language: VB 2005

My form controls get all messed up at different resolutions and when run on Window Vista.

Below is a sample skeleton of my application

Desktop Res (1680 x 1050 pixels)

Please advice.
engrforever  Thursday, March 05, 2009 7:24 PM

You can use google to search for other answers

Custom Search

More Threads

• My .sdf file keeps getting deleted
• Is it possible expose all properties of user control with a little work
• Accessing App. Resource File from custom Control ???
• Controls Disappearing vs 2k5 Professional
• ToolTip Font Change?
• Building controls at runtime in VB.NET
• Toolbar Button Problems...
• DataGridView Custom Cell - Every Cell
• Accented characters in MyForm.designer.vb not loaded correctly by VS!?
• Problems with the visualization of the project window.