1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows form テーブルの配置

Last updated at Posted at 2019-11-29

テーブルの作成

ツールボックスのTableLayoutPanelを配置
列と行を増やす
プロパティのCellとRowを好きな数に設定

結合

ツールボックスからLabelをテーブル内に配置
スクショ3.jpg
配置したLabelを選択
プロパティにCellSpanとRowSpanがあるので今回は行を結合するので、RowSpanを2に変更
DockプロパティをFillに変える
TextAlignもCenterに変える
スクショ2.jpg
余計なmarginがはいっているので0,0,0,0に変える

完成
スクショ1.jpg

1つのセル内に複数の要素を配置する

ツールボックスからpanelをセルに配置する
marginを0,0,0,0に設定
スクショ4.jpg
あとは好きにpanelの上にドラッグして配置できる
スクショ5.jpg

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?