473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do I make VS Designer stop resizing my forms?


Environment:

OS Name Microsoft Windows 2000 Professional
Version 5.0.2195 Service Pack 4 Build 2195
Microsoft Visual C# .NET 2003
Microsoft Development Environment 2003 Version 7.1.3088
Microsoft .NET Framework 1.1 Version 1.1.4322

Background:

I'm building a single .EXE file with a number of classes, the Forms
parts of which looks like this:

PgtForm Your basic Form
+---frmStartUp Startup window, menu, etc.
+---PgtDbEditForm Form with buttons for database edits
+---frmDbEdit1 Edit screen 1
+---frmDbEdit2 Edit screen 2
+---...etc.

The subsidiary forms are "nested" into the Client Area of
'frmStartUp' and appear and disappear as required.

The base form, which I don't use directly, was designed using
Arial-8-Bold, and the other Forms all inherit this. I've spent a
_lot_ of hours tweaking screen layouts, and they generally look
acceptable (I confess I'm not an artist <grin>).

I installed my application on my customer's laptop, and it looked
odd -- too much empty space between the controls and the window
border on the right side and the bottom. Why? Well, I put it down
to the laptop's being set at a resolution something like 1280x800,
and tried to come up with some way of compensating for the
"ooog-liness".

Turns out that there was another factor: I had _my_ desktop set up
to use 120dpi Large Fonts (under the [Advanced] button on Desktop
Properties). The customer's laptop is using the 96dpi Small Fonts.

Oooo-kay. I set my Desktop back to using Small Fonts and have been
going slowly crazy ever since tring to make my screns look neat. My
biggest single problem at this point is that the VS Designer keeps
altering my Form sizes on me every time I rebuild my project.

Here's a specific sequense:

- I open frmStartUp in [Design] mode.
- I set the form size to 800,640.
- This takes effect.
- I move a couple of controls so they look balanced.
- I rebuild the project.

As soon as the rebuild ends, I look at the frmStartUp Properties,
and my 800x640 Form has magically been resized to 687x528! (And
it's repeatable) Ack! Phllbllbbbt!

Is there a SecretSwitch(tm) somewhere in the innards of Visual
Studio that tells the Designer it can resize forms any time it
wants to? If so, I'd _really_ like to turn it OFF!

(Okay. It's late. End Rant, begin Plea For Assistance)

Has anyone seen this before?

Is there some sort of Designer rule that every form size always be
of the form (k + i * Font-Em-Size) or something equally obscure?

Can anyone offer any suggestions on what I could do that might yield
more clues?
Any assistance will be most humbly appreciated.
Frank McKenney, McKenney Associates
Richmond, Virginia / (804) 320-4887
Munged E-mail: frank uscore mckenney ayut minds pring dawt cahm (y'all)
--
The man of science is nothing if not a poet gone wrong.
-- George Meredith, English novelist/poet
--
Nov 17 '05 #1
0 2084

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: WJA | last post by:
I'm designing a database which will be the only application used on a touch screen. There are only 2 forms and they are both Modal, Popup and Thin border style. The forms cover the whole screen...
8
by: Simon Jefferies | last post by:
Hello, I've put a number of controls around forms etc, (like combo box and checked list boxes) and over time they move or change in size without me touching them. Why is this happening and is...
6
by: Charles Kincaid | last post by:
I have a project that is working fine: Compiles fine, and runs fine. 13 forms and 3 modules, besides Assembly. It is a smart device (Pocket PC) app. Often some of my forms will NOT open in the...
1
by: Michiel | last post by:
Hello, I have a class which inherits from Windows.Forms.Panel and I want the same functionality as forms in the designer (i.e. a grid, resizing of all controls including the parent, button names...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
6
by: Arkadiusz Smolak | last post by:
Hi, I need a help. I have form inherited from other form. The base form implementation is placed in other assembly. I try to open my inherited form in designer but visual studio throws an...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
4
by: Phil | last post by:
VS 2008 I have a windows form that was created in the normal way using the form designer. I do not wish to use this form directly though, I want to use it as a basis for some other forms. I have...
2
by: steve | last post by:
I have the very simple derived class below but when I drag the class from the toolbox on to one of my UserControls VS designer extracts the information and puts it into its resource database for the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.