Microsoft Windows Forms QuickStarts Tutorial – Getting Started

來源:互聯網
上載者:User
http://samples.gotdotnet.com/quickstart/winforms/

Dynamic Layout in Windows Forms

1。Anchoring

      When a control is anchored to the edge of its container, the distance between the control and the specified edge remains constant when the container is resized. A control can be anchored to any combination of the edges of the container. If the control is anchored to opposite edges of its container, it is resized when the container is resized.

2。Docking

      When a control is docked to the edge of its container, it remains in contact with that edge when the container is resized. If multiple controls are docked to one edge, the first is docked to the edge of the container, and the others are docked as close as possible to the edge without covering the others.

3。Custom Layout

      You can write your own layout manager by using the Layout event that is exposed on the Control class. This event is raised whenever any event occurs that causes the control to display child controls. These events include Resize, show/hide child controls, and add/remove child controls. This event should be used to perform any custom layout logic.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.