Author Topic: Autoscale screen  (Read 2363 times)

jfarrell

  • Newbie
  • *
  • Posts: 6
    • View Profile
Autoscale screen
« on: February 18, 2015, 03:18:22 PM »
Is there a way to autoscale the Mainform screen so that it can shrink or grow to fit any monitor size and still display all the controls?  I recently created a project on a 14.7" screen but now am having troubles fitting the screen to the 13.3" monitor that I'm running the program on continuously.  When I click the "start debugging" feature in Visual Basic to run the project on the 13.3" monitor, the mainform screen is huge and I have to use the scroll bars to access all the controls.  Thank you.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Autoscale screen
« Reply #1 on: February 18, 2015, 03:41:19 PM »
In an older version was a component named Resizer. When you put that on a form, it would change the sizes of the controls. It had many issues especially with lines and shapes. It was removed because of the problems it created.

The more modern way of handling different screen sizes is termed as a flow layout. In the toolbox are some Panels, TableLayout, etc that gets close to making Winforms a flow layout, but plan to invest a fair amount of time getting it all right.