Results 1 to 4 of 4

Thread: Resize Form

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Smile 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!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    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

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width