4 Replies - 280 Views - Last Post: 23 October 2017 - 08:19 PM Rate Topic: -----

#1 BenBH  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 62
  • Joined: 26-October 12

Component Stretching

Posted 23 October 2017 - 01:31 PM

Hello,

This is something I have not given much thought of it until today. I am trying to make it so that the components stretch out when the window is maximized. I have tried the anchoring but it gets the controls all messed up. Is there any way by code I can stretch out the components by code when the window is maximized then go back to normal when the window is minimized? I have tried searching through google and I cannot find anything helpful for this. Any help is appreciated. Thank you!

Is This A Good Question/Topic? 0
  • +

Replies To: Component Stretching

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13487
  • View blog
  • Posts: 53,857
  • Joined: 12-June 08

Re: Component Stretching

Posted 23 October 2017 - 01:43 PM

Docking is what you would need. You can specify which edge to dock off of.. and if you want all then that would stretch it.
Was This Post Helpful? 0
  • +
  • -

#3 BenBH  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 62
  • Joined: 26-October 12

Re: Component Stretching

Posted 23 October 2017 - 03:03 PM

Thank you! I will try that!
Was This Post Helpful? 0
  • +
  • -

#4 IronRazer  Icon User is online

  • Custom Control Freak
  • member icon

Reputation: 1444
  • View blog
  • Posts: 3,677
  • Joined: 01-February 13

Re: Component Stretching

Posted 23 October 2017 - 04:26 PM

It is not really clear what you mean by "streching" the controls. An example image of before and after a size change would give us a better idea of what controls you are dealing with and how they are arranged. That would help us understand why using the Anchor property is not working the way you want.

Perhaps check one of these out....

If you have your Form's FormBorderStyle property set to one of the Fixed styles so the user can only resize it by Minimizing, Maximizing, or Restoring it, then you can see if the answer i gave in This Thread helps.

If you are not using one of the Fixed styles for the Form's FormBorderStyle property, then maybe the answer i gave in This Thread will help.
Was This Post Helpful? 1
  • +
  • -

#5 BenBH  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 62
  • Joined: 26-October 12

Re: Component Stretching

Posted 23 October 2017 - 08:19 PM

Thank you! The first one was exactly what I was looking for. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1