|
-
Mar 26th, 2006, 08:06 PM
#1
Thread Starter
Frenzied Member
Resize Form
I want it so when you resize it, the font gets bigger proportional to the size of the form. Is this possible? If it is, please don't hesitate to answer!
-
Mar 26th, 2006, 08:16 PM
#2
Re: Resize Form
It's possible but you'll have to code it yourself. You can handle the Resize event of the form and then set the controls fonts accordingly. I would generally consider this a bad idea though. Most people (all people?) set their resolution to get the best balance of readability and screen real estate. If people want the text on a form to be bigger they will generally reduce the resolution of their display.
-
Mar 26th, 2006, 08:20 PM
#3
Thread Starter
Frenzied Member
Re: Resize Form
Yes well, it's for my dad at work. And he wants it small to just be in the corner and some other people who use it have different tastes and prefer it big and wide so I need this
-
Mar 26th, 2006, 08:30 PM
#4
Re: Resize Form
If you're using .NET 2.0 (which you haven't specified, tut tut, use the radio buttons on the new thread screen) then you have a better option. I haven't played with this so I'm not sure of all the details but forms have an AutoScaleMode property. It is set to Font by default, which means that the form will change size as you change the control font size. You could add an option to your app to set the font size to small, medium or large, or some other values, then the form will automatically resize to accomodate it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|