zoukankan      html  css  js  c++  java
  • TableLayoutPanel用法

    //

    // tableLayoutPanel1

    //

    this.tableLayoutPanel1.ColumnCount = 1;

    this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));

    this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);

    this.tableLayoutPanel1.Controls.Add(this.button1, 0, 1);

    this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;

    this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);

    this.tableLayoutPanel1.Name = "tableLayoutPanel1";

    this.tableLayoutPanel1.RowCount = 2;

    this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());

    this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());

    this.tableLayoutPanel1.Size = new System.Drawing.Size(284, 84);

    this.tableLayoutPanel1.TabIndex = 4;

    在TableLayoutPanel中的第一行添加一个Label,在第二行添加一个Button。
     label1可以被显示为多行,而且Winforms自动根据label1的实际宽度,调整了button1的位置

  • 相关阅读:
    Bootsrap 的 Carousel
    Bootstrap 的 Tooltip 和 Popover
    JavaScript 继承
    Bootstrap 的 Collapse
    Bootstrap 组件之 Panel
    Bootstrap 组件之 List group
    Bootstrap 组件之 Nav
    使用 classList API
    Bootstrap 的 Dropdown
    Bootstrap 的 Modal
  • 原文地址:https://www.cnblogs.com/rxie/p/1760821.html
Copyright © 2011-2022 走看看