Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...