What's the best way to design a full screen application in C#?

前端 未结 1 1352
无人共我
无人共我 2021-01-25 02:17

I want to know the best way to design a full screen form, like positioning controls in a way that they won\'t get messed up if the user\'s resolution is different.

This

相关标签:
1条回答
  • 2021-01-25 02:50

    Anchors and Docks.

    The Anchor will bind the control. The Dock property sets how it expands/shrinks.

    So if you assign a button anchor to "Top, left" it's size and position stay locked on those sides. So if you dragged the Form window wider, the object would expand to towards the right and towards the bottom.

    0 讨论(0)
提交回复
热议问题