How to resize datagridview control when form resizes

前端 未结 12 1354
终归单人心
终归单人心 2020-12-29 18:30

I found a lot of questions about how to resize the form when a child control resizes, but I\'m trying to do something much simpler (maybe so simple people don\'t even ask it

12条回答
  •  悲哀的现实
    2020-12-29 19:02

    For me, anchoring works only if I set it to all four sides:

    Anchoring: Top, Bottom, Left, Right

    Setting anchoring just to Left, Bottom moves the whole object when the form is resized in bottom, left side. Setting all four sizes really resizes the object, when parent is resized.

提交回复
热议问题