How to stop resizing while deleting snapping?

When you unlink, the control can automatically resize to another.

Playback Steps

  • Drop the control on the form

    enter image description here

  • Set binding

    enter image description here

  • Resize the form; observe the resize of the control:

    enter image description here

  • Remove the anchor:

    enter image description here

  • Observe control resizing without permission:

    enter image description here

+5
source share
1 answer

When you create a control, it receives the initial parameters. Among them are height and width . When you enable anchoring and resizing, the control also changes, but the original settings do not change. That is why when you remove the binding, it gets its original size.

+1
source

Source: https://habr.com/ru/post/1211714/


All Articles