size of form

Heike

Regular
Joined
Jun 5, 2002
Messages
56
Is there a (simple) possibility to adjust a form with all controls if settings like font change? I just changed my settings from 1280x1024 to 1024x768 and my font from small to big and all my forms look horrible. I want them to look just like before. Even the font of a label or something like that should be the same like before.

Thanks
 
You should never design forms with anything but normal fonts on your development machine. There are known issues with using Large Fonts. For example, every time you switch to the designer the fonts will *keep* on growing and resizing. It's horrible :)

If you want to code for Large Fonts, it's going to be a bit tougher. Your best bet is to get all controls setup first before you do too much coding. After you've compiled/built, switch to Large Fonts and run the EXE to see how things look and make adjustments. Microsoft has some guidelines, but a good rule of thumb is to leave a little space to the right of labels. If you don't have any wrapping captions, I've used the "AutoSize" property on labels with some success.

As a note, if you have a label that may show a lot of text and you don't want wrapping to occur, you can "cheat" by changing the control to a TextBox and adjust some properties to make it look like a lable. Since the default (non-multiline) textbox control doesn't wrap, you won't have the issue of seeing the top part of a wrapped line of text. This can be useful in moderation where appropriate.

To let you know how difficult Large Fonts can be, you should check out some of MS's windows dialogs. I've run into 2 or 3 that didn't work with Large Fonts - text in labels would scroll off the screen or too far down to read.

Good Luck!
-Nerseus
 
Also, check out the AutoScale property of the Form. Supposedly, it should handle at least some of process for you.
 
Back
Top