The usage of SplitContainer in C#winfrom

Source: Internet
Author: User

(1). SplitContainer cannot be clicked directly by the mouse, and can be selected by right-clicking and selecting SplitContainer.

(2). The issplitterfixed property is used to set whether the splitter can be moved.

(3). The Fixedpanel property is set to Panel1 (or Panel2) so that the size of the Panel1 panel (or the PANEL2 panel) is not changed by default when the form is resized, and if set to none, The Panel1 panel and the Panel2 panel are scaled proportionally.

(4). The Orientation property determines the direction of the splitter, and when the property is set to vertical, the splitter is placed vertically, resulting in the left and right panels.

(5). Attribute panel1collapsed and attribute panel2collapsed respectively set Panel1 and Panel2 Two containers are collapsed, so-called folding is hidden.

(6). The panel1minsize property is used to set the minimum width of the Panel1 container, and the Panel2minsize property is used to set the minimum width of the Panel2 container.

(7). The issplitterfixed property is used to set whether the splitter can be moved.

(8). The splitterdistance property is used to set the pixel distance between the splitter and the left or top edge.

(9). The splitterincrement property is used to set the distance of each move when the user drags the splitter. The splitterwidth property is used to set the width of the splitter bar.

(10). Other common properties and common values: BorderStyle (FixedSingle), Dock (Fill), Locked (True), TabStop (False).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.